Added Login

This commit is contained in:
2025-02-17 03:38:48 +01:00
parent af5248faed
commit 90ccb8a00c
20 changed files with 519 additions and 20 deletions
+16 -6
View File
@@ -8,14 +8,24 @@
<div th:replace="~{header}"/>
<main>
<form>
<label for="login-pseudo">Pseudo :</label>
<input type="text" id="login-pseudo" name="pseudo"/>
<div th:if="${param.error}">
<div class="alert alert-danger">Invalid Email or Password</div><br/>
</div>
<div th:if="${param.logout}">
<div class="alert alert-success"> You have been logged out.</div><br/>
</div>
<form
method="post"
role="form"
th:action="@{/login}">
<label for="username">Pseudo :</label>
<input type="text" id="username" name="username"/>
<br/>
<label for="login-password">Mot de passe :</label>
<input type="text" id="login-password" name="password"/>
<label for="password">Mot de passe :</label>
<input type="password" id="password" name="password"/>
<br/>
<input id="connect" type="button">Se connecter</input>
<input id="connect" type="submit">Se connecter</input>
</form>
</main>
</body>