feat: add logout confirm page

This commit is contained in:
@lukin 2022-09-25 20:00:00 +01:00
parent a25726e4f3
commit 22b6428eba
2 changed files with 25 additions and 0 deletions

View file

@ -13,6 +13,7 @@ Keywind is a component-based Keycloak Login Theme built with [Tailwind CSS](http
- Login Reset Password
- Login Update Password
- Login Update Profile
- Logout Confirm
- Register
### Social Media Icons

View file

@ -0,0 +1,24 @@
<#import "template.ftl" as layout>
<#import "components/button/primary.ftl" as buttonPrimary>
<#import "components/link/secondary.ftl" as linkSecondary>
<@layout.registrationLayout; section>
<#if section = "header">
${msg("logoutConfirmTitle")}
<#elseif section = "form">
<p>${msg("logoutConfirmHeader")}</p>
<form action="${url.logoutConfirmAction}" class="m-0 space-y-4" method="post">
<input name="session_code" type="hidden" value="${logoutConfirm.code}">
<@buttonPrimary.kw type="submit">
${msg("doLogout")}
</@buttonPrimary.kw>
</form>
<#if !logoutConfirm.skipLink>
<#if (client.baseUrl)?has_content>
<@linkSecondary.kw href=client.baseUrl>
<span class="text-sm">${kcSanitize(msg("backToApplication"))?no_esc}</span>
</@linkSecondary.kw>
</#if>
</#if>
</#if>
</@layout.registrationLayout>