mirror of
https://github.com/lukin/keywind.git
synced 2025-01-25 08:46:27 +00:00
Added IDP extension
This commit is contained in:
parent
e8fcdd9a44
commit
5dad1e2c7f
3 changed files with 126 additions and 0 deletions
20
theme/keywind/login/login-idp-link-confirm.ftl
Normal file
20
theme/keywind/login/login-idp-link-confirm.ftl
Normal file
|
@ -0,0 +1,20 @@
|
|||
<#import "template.ftl" as layout>
|
||||
<#import "components/button/primary.ftl" as buttonPrimary>
|
||||
<@layout.registrationLayout; section>
|
||||
<#if section = "header">
|
||||
${msg("confirmLinkIdpTitle")}
|
||||
<#elseif section = "form">
|
||||
<form action="${url.loginAction}" method="post" class="m-0 space-y-4">
|
||||
<div>
|
||||
<@buttonPrimary.kw type="submit" name="submitAction" id="updateProfile" value="updateProfile">
|
||||
${msg("confirmLinkIdpReviewProfile")}
|
||||
</@buttonPrimary.kw>
|
||||
</div>
|
||||
<div>
|
||||
<@buttonPrimary.kw type="submit" name="submitAction" id="linkAccount" value="linkAccount">
|
||||
${msg("confirmLinkIdpContinue", idpDisplayName)}
|
||||
</@buttonPrimary.kw>
|
||||
</div>
|
||||
</form>
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
42
theme/keywind/login/login-update-password.ftl
Normal file
42
theme/keywind/login/login-update-password.ftl
Normal file
|
@ -0,0 +1,42 @@
|
|||
<#import "template.ftl" as layout>
|
||||
<#import "components/button/primary.ftl" as buttonPrimary>
|
||||
<#import "components/input/primary.ftl" as inputPrimary>
|
||||
<@layout.registrationLayout displayMessage=!messagesPerField.existsError('password','password-confirm'); section>
|
||||
<#if section = "header">
|
||||
${msg("updatePasswordTitle")}
|
||||
<#elseif section = "form">
|
||||
<form class="m-0 space-y-4" action="${url.loginAction}" method="post">
|
||||
<input type="text" id="username" name="username" value="${username}" autocomplete="username"
|
||||
readonly="readonly" style="display:none;"/>
|
||||
<input type="password" id="password" name="password" autocomplete="current-password" style="display:none;"/>
|
||||
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="new-password"
|
||||
invalid=["password", "password-confirm"]
|
||||
message=false
|
||||
autofocus=true
|
||||
name="password-new"
|
||||
type="password"
|
||||
>
|
||||
${msg("passwordNew")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="new-password"
|
||||
invalid=["password-confirm"]
|
||||
name="password-confirm"
|
||||
type="password"
|
||||
>
|
||||
${msg("passwordConfirm")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
<div>
|
||||
<@buttonPrimary.kw type="submit">
|
||||
${msg("doSubmit")}
|
||||
</@buttonPrimary.kw>
|
||||
</div>
|
||||
</form>
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
64
theme/keywind/login/login-update-profile.ftl
Normal file
64
theme/keywind/login/login-update-profile.ftl
Normal file
|
@ -0,0 +1,64 @@
|
|||
<#import "template.ftl" as layout>
|
||||
<#import "components/button/primary.ftl" as buttonPrimary>
|
||||
<#import "components/input/primary.ftl" as inputPrimary>
|
||||
<@layout.registrationLayout displayMessage=!messagesPerField.existsError('username','email','firstName','lastName'); section>
|
||||
<#if section = "header">
|
||||
${msg("loginProfileTitle")}
|
||||
<#elseif section = "form">
|
||||
<form class="m-0 space-y-4" action="${url.loginAction}" method="post">
|
||||
<#if user.editUsernameAllowed>
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="username"
|
||||
autofocus=true
|
||||
invalid=["username"]
|
||||
name="username"
|
||||
type="text"
|
||||
value=(user.username)!''
|
||||
>
|
||||
${msg("username")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
</#if>
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="email"
|
||||
invalid=["email"]
|
||||
name="email"
|
||||
type="email"
|
||||
value=(user.email)!''
|
||||
>
|
||||
${msg("email")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="given-name"
|
||||
invalid=["firstName"]
|
||||
name="firstName"
|
||||
type="text"
|
||||
value=(user.firstName)!''
|
||||
>
|
||||
${msg("firstName")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
<div>
|
||||
<@inputPrimary.kw
|
||||
autocomplete="family-name"
|
||||
invalid=["lastName"]
|
||||
name="lastName"
|
||||
type="text"
|
||||
value=(user.lastName)!''
|
||||
>
|
||||
${msg("lastName")}
|
||||
</@inputPrimary.kw>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<@buttonPrimary.kw type="submit">
|
||||
${msg("doSubmit")}
|
||||
</@buttonPrimary.kw>
|
||||
</div>
|
||||
</form>
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
Loading…
Reference in a new issue