Files
FotoSharing/target/classes/templates/login.html

25 lines
696 B
HTML

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8"/>
<title>Login - FotoSharing</title>
</head>
<body>
<h1>Connexion</h1>
<form th:action="@{/login}" method="post">
<label>Email: <input type="text" name="username"/></label><br/>
<label>Mot de passe: <input type="password" name="password"/></label><br/>
<button type="submit">Se connecter</button>
</form>
<div th:if="${param.logout}">
Déconnecté avec succès.
</div>
<div th:if="${param.error}">
Erreur d'authentification.
</div>
<p><a th:href="@{/register}">Créer un compte</a></p>
<p><a th:href="@{/galerie}">Galerie publique</a></p>
</body>
</html>