pwdupdateform.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  7. <title>Password Update Form</title>
  8. <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
  9. <script th:inline="javascript">
  10. /*<![CDATA[*/
  11. var policyPattern = /*[[${policyPattern}]]*/;
  12. var passwordStrengthI18n = {
  13. 0: /*[[#{screen.pm.password.strength.0}]]*/,
  14. 1: /*[[#{screen.pm.password.strength.1}]]*/,
  15. 2: /*[[#{screen.pm.password.strength.2}]]*/,
  16. 3: /*[[#{screen.pm.password.strength.3}]]*/,
  17. 4: /*[[#{screen.pm.password.strength.4}]]*/
  18. };
  19. /*]]>*/
  20. </script>
  21. </head>
  22. <body>
  23. <main role="main" class="container mt-3 mb-3">
  24. <div class="alert alert-info">
  25. <h3 th:utext="${expiredPass} ? #{screen.expiredpass.heading} : #{screen.mustchangepass.heading}">Change Password
  26. Heading</h3>
  27. <form id="passwordManagementForm" th:if="${passwordManagementEnabled}" method="post" th:object="${password}">
  28. <div class="alert alert-danger" th:if="${#fields.hasErrors('*')}">
  29. <span th:each="err : ${#fields.errors('*')}" th:utext="${err}">Error text</span>
  30. </div>
  31. <div class="form-group">
  32. <label for="password" th:utext="#{screen.pm.enterpsw}">Enter Password:</label>&nbsp;
  33. <input class="form-control" type="password" id="password" th:field="*{password}" required/>
  34. </div>
  35. <div class="form-group">
  36. <label for="confirmedPassword" th:utext="#{screen.pm.confirmpsw}">Confirm Password:</label>&nbsp;
  37. <input class="form-control" type="password" id="confirmedPassword" th:field="*{confirmedPassword}"
  38. required/>
  39. </div>
  40. <div class="form-group">
  41. <div>
  42. <span th:text="#{screen.pm.password.strength}">Strength:</span>&nbsp;
  43. <span id="password-strength-icon" class="fas" aria-hidden="true"></span>
  44. </div>
  45. <div class="progress">
  46. <div id="strengthProgressBar" class="progress-bar"></div>
  47. </div>
  48. <div>
  49. <span id="password-strength-warning"></span>&nbsp;<span id="password-strength-suggestions"></span>
  50. </div>
  51. </div>
  52. <div class="form-group" id="password-strength-notes">
  53. <div id="password-policy-violation-msg" class="alert alert-danger" role="alert" style="display: none;">
  54. <span class="fas fa-exclamation-circle" aria-hidden="true"></span>&nbsp;
  55. <strong th:text="#{screen.pm.password.policyViolation}">Password does not match the password policy requirement.</strong>
  56. </div>
  57. <div id="password-confirm-mismatch-msg" class="alert alert-danger" role="alert" style="display: none;">
  58. <span class="fas fa-exclamation-circle" aria-hidden="true"></span>&nbsp;
  59. <strong th:text="#{screen.pm.password.confirmMismatch}">Passwords do not match.</strong>
  60. </div>
  61. </div>
  62. <div class="form-group text-center">
  63. <input type="hidden" name="execution" th:value="${flowExecutionKey}"/>
  64. <input type="hidden" name="_eventId" value="submit"/>
  65. <input class="btn btn-submit"
  66. name="submit"
  67. accesskey="s"
  68. th:value="#{screen.pm.button.submit}"
  69. value="SUBMIT"
  70. id="submit"
  71. type="submit"
  72. disabled="true"/>
  73. &nbsp;
  74. <a class="btn btn-danger" th:href="@{/login}" th:text="#{screen.pm.button.cancel}">CANCEL</a>
  75. </div>
  76. </form>
  77. <p th:unless="${passwordManagementEnabled}"
  78. th:utext="${expiredPass} ? #{screen.expiredpass.message} : #{screen.mustchangepass.message}">Expired/Must
  79. Change Password text</p>
  80. </div>
  81. </main>
  82. </body>
  83. </html>