This commit is contained in:
Zastian Pretorius
2022-08-29 19:32:02 +01:00
parent 7ab3526d50
commit d664201875
28 changed files with 346 additions and 10 deletions

View File

@@ -29,6 +29,7 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li sec:authorize="isAuthenticated()"><a th:href="@{/logout}">Logout</a></li>
<li sec:authorize="isAuthenticated()"><a th:href="@{/admin}">Admin</a></li>
</ul>
</div>
</div>
@@ -41,8 +42,6 @@
<h1>Registration and Login with Spring Boot, Spring Security,
Thymeleaf, Hibernate and MySQL</h1>
Welcome <span sec:authentication="principal.username"> User</span>
<button type="button" class="btn btn-primary"
th:href="@{/admin}">admin</button>
</div>
</body>
</html>