FEAT : Mise en place de l'architecture + instription d'un utilisateur
This commit is contained in:
23
target/classes/templates/login.html
Normal file
23
target/classes/templates/login.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!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>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user