forked from mirrors/keywind
feat: add logout confirm page
This commit is contained in:
parent
a25726e4f3
commit
22b6428eba
2 changed files with 25 additions and 0 deletions
|
@ -13,6 +13,7 @@ Keywind is a component-based Keycloak Login Theme built with [Tailwind CSS](http
|
||||||
- Login Reset Password
|
- Login Reset Password
|
||||||
- Login Update Password
|
- Login Update Password
|
||||||
- Login Update Profile
|
- Login Update Profile
|
||||||
|
- Logout Confirm
|
||||||
- Register
|
- Register
|
||||||
|
|
||||||
### Social Media Icons
|
### Social Media Icons
|
||||||
|
|
24
theme/keywind/login/logout-confirm.ftl
Normal file
24
theme/keywind/login/logout-confirm.ftl
Normal 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>
|
Loading…
Reference in a new issue