login-password.ftl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <#import "template.ftl" as layout>
  2. <@layout.registrationLayout displayMessage=!messagesPerField.existsError('password'); section>
  3. <#if section = "header">
  4. ${msg("doLogIn")}
  5. <#elseif section = "form">
  6. <div id="kc-form">
  7. <div id="kc-form-wrapper">
  8. <form id="kc-form-login" onsubmit="login.disabled = true; return true;" action="${url.loginAction}"
  9. method="post">
  10. <div class="${properties.kcFormGroupClass!} no-bottom-margin">
  11. <hr/>
  12. <label for="password" class="${properties.kcLabelClass!}">${msg("password")}</label>
  13. <input tabindex="2" id="password" class="${properties.kcInputClass!}" name="password"
  14. type="password" autocomplete="on"
  15. aria-invalid="<#if messagesPerField.existsError('password')>true</#if>"
  16. />
  17. <#if messagesPerField.existsError('password')>
  18. <span id="input-error-password" class="${properties.kcInputErrorMessageClass!}" aria-live="polite">
  19. ${kcSanitize(messagesPerField.get('password'))?no_esc}
  20. </span>
  21. </#if>
  22. </div>
  23. <div class="${properties.kcFormGroupClass!} ${properties.kcFormSettingClass!}">
  24. <div id="kc-form-options">
  25. </div>
  26. <div class="${properties.kcFormOptionsWrapperClass!}">
  27. <#if realm.resetPasswordAllowed>
  28. <span><a tabindex="5"
  29. href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a></span>
  30. </#if>
  31. </div>
  32. </div>
  33. <div id="kc-form-buttons" class="${properties.kcFormGroupClass!}">
  34. <input tabindex="4" class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" name="login" id="kc-login" type="submit" value="${msg("doLogIn")}"/>
  35. </div>
  36. </form>
  37. </div>
  38. </div>
  39. </#if>
  40. </@layout.registrationLayout>