password.ftl 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <#import "template.ftl" as layout>
  2. <@layout.mainLayout active='password' bodyClass='password'; section>
  3. <div class="row">
  4. <div class="col-md-10">
  5. <h2>${msg("changePasswordHtmlTitle")}</h2>
  6. </div>
  7. <div class="col-md-2 subtitle">
  8. <span class="subtitle">${msg("allFieldsRequired")}</span>
  9. </div>
  10. </div>
  11. <form action="${url.passwordUrl}" class="form-horizontal" method="post">
  12. <input type="text" id="username" name="username" value="${(account.username!'')}" autocomplete="username" readonly="readonly" style="display:none;">
  13. <#if password.passwordSet>
  14. <div class="form-group">
  15. <div class="col-sm-2 col-md-2">
  16. <label for="password" class="control-label">${msg("password")}</label>
  17. </div>
  18. <div class="col-sm-10 col-md-10">
  19. <input type="password" class="form-control" id="password" name="password" autofocus autocomplete="current-password">
  20. </div>
  21. </div>
  22. </#if>
  23. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  24. <div class="form-group">
  25. <div class="col-sm-2 col-md-2">
  26. <label for="password-new" class="control-label">${msg("passwordNew")}</label>
  27. </div>
  28. <div class="col-sm-10 col-md-10">
  29. <input type="password" class="form-control" id="password-new" name="password-new" autocomplete="new-password">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <div class="col-sm-2 col-md-2">
  34. <label for="password-confirm" class="control-label" class="two-lines">${msg("passwordConfirm")}</label>
  35. </div>
  36. <div class="col-sm-10 col-md-10">
  37. <input type="password" class="form-control" id="password-confirm" name="password-confirm" autocomplete="new-password">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <div id="kc-form-buttons" class="col-md-offset-2 col-md-10 submit">
  42. <div class="">
  43. <button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="submitAction" value="Save">${msg("doSave")}</button>
  44. </div>
  45. </div>
  46. </div>
  47. </form>
  48. </@layout.mainLayout>