diff options
Diffstat (limited to 'src/main/resources/templates')
| -rw-r--r-- | src/main/resources/templates/fragments.html | 5 | ||||
| -rw-r--r-- | src/main/resources/templates/login.html | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html index 7a9af2f..bfa36a2 100644 --- a/src/main/resources/templates/fragments.html +++ b/src/main/resources/templates/fragments.html @@ -21,6 +21,11 @@ <a th:href="@{/login}">Login</a> </li> <li class="login" sec:authorize="isAuthenticated()"> + <span> + <span>👤</span> + <span sec:authentication="name">?</span> + </span> + <a th:href="@{/logout}">Abmelden</a> </li> </ul> diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 9a63b46..4ef8ec9 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -13,9 +13,11 @@ <div class="centered notification error" th:if="${param.error}">Anmeldung nicht erfolgreich</div> <div class="centered notification success" th:if="${param.logout}">Sie haben sich abgemeldet</div> <form method="post" th:action="@{/login}"> - <input type="text" id="username" name="username" class="form-control" placeholder="Username" required="" autofocus=""> - <input type="password" id="password" name="password" class="form-control" placeholder="Password" required=""> + <input type="text" id="username" name="username" class="form-control" placeholder="Username" required="" autofocus="" /> + <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="" /> <button type="submit">Anmelden</button> + <hr th:if="${not oidcLogins.isEmpty()}" /> + <a th:each="oidcLogin : ${oidcLogins}" class="btn" th:href="@{/oauth2/authorization/{provider}(provider=${oidcLogin.component1()})}">OIDC Login - [[ ${oidcLogin.component2()} ]]</a> </form> </div> </main> |
