Bug fix: Respect registrationEmailAsUsername in reset-password template.

This commit is contained in:
Christopher Svensson 2016-08-18 10:24:37 +02:00
parent 243c8cc2cd
commit d20d5ce2d7

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>