Merge pull request #3150 from stoffus/bug-fix-in-reset-password-tpl

KEYCLOAK-3441 Respect registrationEmailAsUsername in reset-password template
This commit is contained in:
Stian Thorgersen 2016-09-05 09:10:49 +02:00 committed by GitHub
commit 4d6e656b02

View file

@ -8,7 +8,7 @@
<form id="kc-reset-password-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
<div class="${properties.kcFormGroupClass!}">
<div class="${properties.kcLabelWrapperClass!}">
<label for="username" class="${properties.kcLabelClass!}">${msg("usernameOrEmail")}</label>
<label for="username" class="${properties.kcLabelClass!}"><#if !realm.registrationEmailAsUsername>${msg("usernameOrEmail")}<#else>${msg("email")}</#if></label>
</div>
<div class="${properties.kcInputWrapperClass!}">
<input type="text" id="username" name="username" class="${properties.kcInputClass!}" autofocus/>
@ -30,4 +30,4 @@
<#elseif section = "info" >
${msg("emailInstruction")}
</#if>
</@layout.registrationLayout>
</@layout.registrationLayout>