summaryrefslogtreecommitdiff
path: root/spring-boot/09-spring-security-db-authentication
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-06-20 18:10:13 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-06-20 18:10:13 +0530
commit8c66a82e0caa71c3bb1c1dc40d91272f51c1c0f5 (patch)
tree8d1cfc4fbdf9f3084f744cb713eba1c7e572f27c /spring-boot/09-spring-security-db-authentication
parent2b051109a4d2567311c49095b39ab12b5ff8b587 (diff)
Minor layout page update
Diffstat (limited to 'spring-boot/09-spring-security-db-authentication')
-rw-r--r--spring-boot/09-spring-security-db-authentication/src/main/resources/templates/layout/main.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/layout/main.html b/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/layout/main.html
index 5f988d0..adeb8a9 100644
--- a/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/layout/main.html
+++ b/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/layout/main.html
@@ -18,8 +18,8 @@
<ul>
<li><a th:href="@{/}">Home</a></li>
<li><a th:href="@{/contact}">Contact Us</a></li>
- <li><a th:href="@{/profile/{name}(name=${#authentication.name})}" sec:authorize="isAuthenticated()">Profile</a></li>
- <li><a th:href="@{/logout}" sec:authorize="isAuthenticated()">Logout</a></li>
+ <li sec:authorize="isAuthenticated()"><a th:href="@{/profile/{name}(name=${#authentication.name})}">Profile</a></li>
+ <li sec:authorize="isAuthenticated()"><a th:href="@{/logout}">Logout</a></li>
</ul>
</nav>