summaryrefslogtreecommitdiff
path: root/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-06-13 21:03:31 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-06-13 21:03:31 +0530
commitf0001c5c8d8a33729b93d8d6e10d3af40bfabed6 (patch)
tree6042e5bfdd48671daa95baf29c5041e526f5b62e /spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html
parent6ae21cd4e51756ea14b43b82a9d500bca9fb8032 (diff)
Added sample application 09-spring-security-db-authentication
Diffstat (limited to 'spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html')
-rw-r--r--spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html b/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html
new file mode 100644
index 0000000..dce7a4e
--- /dev/null
+++ b/spring-boot/09-spring-security-db-authentication/src/main/resources/templates/index.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML>
+<html xmlns:th="http://www.thymeleaf.org"
+ xmlns:sec="http://thymeleaf.org/extras/spring-security"
+ th:replace="~{layout/main :: layout(title='Welcome', content=~{::main})}">
+
+<body>
+ <main>
+ <p>Hello, <span sec:authentication="name">Username Placeholder</span>!</p>
+
+ <p>Hello, [[${#authentication.name}]]!</p>
+
+ <p>This is the home page content.</p>
+
+ <p>Use the navigation links to explore other pages.</p>
+ </main>
+</body>
+
+</html> \ No newline at end of file