43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
<#import "template.ftl" as layout>
|
|
<#import "components/button/primary.ftl" as buttonPrimary>
|
|
<#import "components/input/primary.ftl" as inputPrimary>
|
|
<#import "components/label/username.ftl" as labelUsername>
|
|
<#import "components/link/secondary.ftl" as linkSecondary>
|
|
|
|
<@layout.registrationLayout
|
|
displayInfo=true
|
|
displayMessage=!messagesPerField.existsError("username")
|
|
;
|
|
section
|
|
>
|
|
<#if section="header">
|
|
${msg("emailForgotTitle")}
|
|
<#elseif section="form">
|
|
<form action="${url.loginAction}" class="m-0 space-y-4" method="post">
|
|
<div>
|
|
<@inputPrimary.kw
|
|
autocomplete=realm.loginWithEmailAllowed?string("email", "username")
|
|
autofocus=true
|
|
invalid=["username"]
|
|
name="username"
|
|
type="text"
|
|
value=(auth?has_content && auth.showUsername())?then(auth.attemptedUsername, '')
|
|
>
|
|
<@labelUsername.kw />
|
|
</@inputPrimary.kw>
|
|
</div>
|
|
<div>
|
|
<@buttonPrimary.kw type="submit">
|
|
${msg("doSubmit")}
|
|
</@buttonPrimary.kw>
|
|
</div>
|
|
</form>
|
|
<#elseif section="info">
|
|
${msg("emailInstruction")}
|
|
<#elseif section="nav">
|
|
<@linkSecondary.kw href=url.loginUrl>
|
|
<span class="text-sm">${kcSanitize(msg("backToLogin"))?no_esc}</span>
|
|
</@linkSecondary.kw>
|
|
</#if>
|
|
</@layout.registrationLayout>
|