mirror of
https://github.com/mrfluffy-dev/PRG381.git
synced 2026-01-17 10:20:33 +00:00
done bra
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user