Skip to content

Commit 15591ac

Browse files
committed
updated readme
1 parent 0d6e856 commit 15591ac

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

spring-boot-pid/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# spring-boot-pid
2-
An example project for PID generation with spring-boot.
2+
An example project for PID generation with spring-boot.
3+
4+
It's the demo project for my blog post at http://chclaus.de/2016/02/19/spring-boot-pid/
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# spring-boot-user-impersonation
2-
An example project to show user impersonation with spring-boot.
2+
An example project to show user impersonation with spring-boot.
3+
4+
It's the demo project for my blog post at http://chclaus.de/2016/02/22/spring-boot-user-impersonation/

spring-boot-user-impersonation/src/main/resources/templates/login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<strong data-th-if="${param.logout}">You have been logged out.</strong>
66
<form data-th-action="@{/login}" method="post">
77
<label for="username">Username:</label><input id="username" type="text" name="username"/>
8-
<label for="password">Password:</label><input id="password" type="text" name="password"/>
8+
<label for="password">Password:</label><input id="password" type="password" name="password"/>
99
<input type="submit" value="Login"/>
1010
</form>
1111
</body>

spring-boot-user-impersonation/src/main/resources/templates/user.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:sec="http://www.springframework.org/security/tags">
44

55
<body>
6-
<h1 data-th-text="${#authentication.principal.username}">[username]</h1>
6+
<h1 sec:authentication="name">[username]</h1>
77

88
<div sec:authorize="hasAnyRole('ROLE_ADMIN','ROLE_PREVIOUS_ADMINISTRATOR')">
99
Very secret user information which is just visible for admins!

0 commit comments

Comments
 (0)