Added remember-me auth, fields in User.java, some HTML pages.

Adding forum system, commit 1/2
This commit is contained in:
redtea committed 2022-08-29 11:52:56 +03:00
1 parent c13f926a56
commit 180db45c8d
17 files changed
+292 -41

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8">
<title>О нас</title>
</head>
<main>
<p>О нас</p>
</main>
</body>
</html>
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8">
<title>Форум</title>
</head>
<main>
<p>Форум</p>
</main>
</body>
</html>
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8">
<title>Главная</title>
</head>
<main>
<p>Главня страница</p>
<form th:action="@{/logout}" method="post"><button sec:authorize="isAuthenticated()" type="submit">Выйти</button></form>
<a sec:authorize="isAnonymous()" href="/login">Вход</a>
</main>
</body>
</html>
+2 -2
View File
@@ -21,7 +21,7 @@
</head>
<body class="text-center">
<body>
<main>
@@ -39,7 +39,7 @@
<div>
<label>
<input type="checkbox" value="remember-me"> Запомнить меня
<input type="checkbox" name="remember-me"> Запомнить меня
</label>
</div>