|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> |
| 8 | + |
| 9 | + <title>Password Update Form</title> |
| 10 | + <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/> |
| 11 | +</head> |
| 12 | + |
| 13 | +<body> |
| 14 | +<main role="main" class="container mt-3 mb-3"> |
| 15 | + <div id="pwdmain" th:fragment="pwdupdateform"> |
| 16 | + <script th:inline="javascript"> |
| 17 | + /*<![CDATA[*/ |
| 18 | + |
| 19 | + var policyPattern = /*[[${passwordPolicyPattern}]]*/; |
| 20 | + var passwordStrengthI18n = { |
| 21 | + 0: /*[[#{screen.pm.password.strength.0}]]*/, |
| 22 | + 1: /*[[#{screen.pm.password.strength.1}]]*/, |
| 23 | + 2: /*[[#{screen.pm.password.strength.2}]]*/, |
| 24 | + 3: /*[[#{screen.pm.password.strength.3}]]*/, |
| 25 | + 4: /*[[#{screen.pm.password.strength.4}]]*/ |
| 26 | + }; |
| 27 | + var passwordMinimumStrength = 0; |
| 28 | + |
| 29 | + /*]]>*/ |
| 30 | + </script> |
| 31 | + <h3 th:utext="${expiredPass} |
| 32 | + ? #{screen.expiredpass.heading(${credential.id})} |
| 33 | + : #{screen.mustchangepass.heading(${credential.id})}"> |
| 34 | + Change Password Heading</h3> |
| 35 | + |
| 36 | + <form id="passwordManagementForm" th:if="${passwordManagementEnabled}" method="post" |
| 37 | + th:object="${password}"> |
| 38 | + <div class="banner banner-danger alert alert-danger banner-dismissible my-4" th:if="${#fields.hasErrors('*')}"> |
| 39 | + |
| 40 | + <span th:each="err : ${#fields.errors('*')}" th:utext="${err}">Error text</span> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div class="cas-field my-3 mdc-input-group form-group d-flex"> |
| 44 | + <div class="mdc-input-group-field mdc-input-group-field-append flex-grow-1"> |
| 45 | + <div class="d-flex caps-check"> |
| 46 | + |
| 47 | + <label for="password" |
| 48 | + class="mdc-text-field caps-check mdc-text-field--outlined control-label mdc-text-field--with-trailing-icon"> |
| 49 | + <input class="mdc-text-field__input form-control pwd" |
| 50 | + autocapitalize="none" |
| 51 | + spellcheck="false" |
| 52 | + type="password" |
| 53 | + name="password" |
| 54 | + id="password" |
| 55 | + th:field="*{password}" |
| 56 | + autocomplete="off" required/> |
| 57 | + <span class="mdc-notched-outline"> |
| 58 | + <span class="mdc-notched-outline__leading"></span> |
| 59 | + <span class="mdc-notched-outline__notch"> |
| 60 | + <span class="mdc-floating-label" th:utext="#{screen.pm.enterpsw}">Enter Password:</span> |
| 61 | + </span> |
| 62 | + <span class="mdc-notched-outline__trailing"></span> |
| 63 | + </span> |
| 64 | + </label> |
| 65 | + <i class="mdi mdi-alert mdc-text-field__icon text-danger caps-warn"></i> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + <button class="reveal-password align-self-end mdc-button mdc-button--raised mdc-input-group-append mdc-icon-button btn btn-primary" |
| 69 | + tabindex="-1" type="button"> |
| 70 | + <i class="mdi mdi-eye reveal-password-icon fas fa-eye"></i> |
| 71 | + <span class="visually-hidden">Toggle Password</span> |
| 72 | + </button> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div class="cas-field form-group mdc-input-group my-3"> |
| 76 | + <div class="d-flex caps-check"> |
| 77 | + <label for="confirmedPassword" class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon control-label"> |
| 78 | + <input class="mdc-text-field__input form-control pwd" |
| 79 | + type="password" |
| 80 | + autocapitalize="none" |
| 81 | + spellcheck="false" |
| 82 | + name="confirmedPassword" |
| 83 | + id="confirmedPassword" |
| 84 | + th:field="*{confirmedPassword}" |
| 85 | + autocomplete="off" required/> |
| 86 | + |
| 87 | + <span class="mdc-notched-outline"> |
| 88 | + <span class="mdc-notched-outline__leading"></span> |
| 89 | + <span class="mdc-notched-outline__notch"> |
| 90 | + <span class="mdc-floating-label" th:utext="#{screen.pm.confirmpsw}">Confirm Password:</span> |
| 91 | + </span> |
| 92 | + <span class="mdc-notched-outline__trailing"></span> |
| 93 | + </span> |
| 94 | + </label> |
| 95 | + <i class="mdi mdi-alert mdc-text-field__icon bs-hide text-danger caps-warn"></i> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + |
| 99 | + <div class="cas-field form-group my-3 d-flex flex-column"> |
| 100 | + <div class="d-flex align-items-center"> |
| 101 | + <span th:text="#{screen.pm.password.strength}">Strength:</span> |
| 102 | + <span id="password-strength-icon" class="mdi" aria-hidden="true"></span> |
| 103 | + </div> |
| 104 | + <div id="strengthProgressBar" role="progressbar" class="d-none progress"> |
| 105 | + <div id="progress-strength-indicator" class="progress-bar progress-bar-indicator text-center"></div> |
| 106 | + <div class="mdc-linear-progress"> |
| 107 | + <div class="mdc-linear-progress__buffering-dots"></div> |
| 108 | + <div class="mdc-linear-progress__buffer"></div> |
| 109 | + <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" style="transform: scaleX(0);"> |
| 110 | + <span class="mdc-linear-progress__bar-inner"></span> |
| 111 | + </div> |
| 112 | + <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar"> |
| 113 | + <span class="mdc-linear-progress__bar-inner"></span> |
| 114 | + </div> |
| 115 | + </div> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + <div class="cas-field form-group my-3 text-warning" id="password-strength-msg" style="display: none;"> |
| 119 | + <div class="suggestions banner banner-warning alert alert-warning p-2 mb-2 d-flex align-items-center" role="alert"> |
| 120 | + <span class="mdi mdi-information fas fa-info-circle" aria-hidden="true"></span> |
| 121 | + <p class="m-0"> |
| 122 | + <span id="password-strength-warning"></span> |
| 123 | + <span id="password-strength-suggestions"></span> |
| 124 | + </p> |
| 125 | + </div> |
| 126 | + </div> |
| 127 | + <div class="cas-field form-group my-3 text-danger" id="password-strength-notes"> |
| 128 | + <div id="password-policy-violation-msg" class="banner banner-danger alert alert-danger p-2" role="alert" style="display: none;"> |
| 129 | + <span class="mdi mdi-alert fas fa-exclamation-triangle" aria-hidden="true"></span> |
| 130 | + <strong th:text="#{screen.pm.password.policyViolation}">Password does not match the password policy |
| 131 | + requirement.</strong> |
| 132 | + </div> |
| 133 | + <div id="password-confirm-mismatch-msg" class="banner banner-danger alert alert-danger p-2" role="alert" style="display: none;"> |
| 134 | + <span class="mdi mdi-alert fas fa-exclamation-triangle" aria-hidden="true"></span> |
| 135 | + <strong th:text="#{screen.pm.password.confirmMismatch}">Passwords do not match.</strong> |
| 136 | + </div> |
| 137 | + </div> |
| 138 | + |
| 139 | + <div class="cas-field form-group"> |
| 140 | + <input type="hidden" name="execution" th:value="${flowExecutionKey}"/> |
| 141 | + <input type="hidden" name="_eventId" value="submit"/> |
| 142 | + <button class="mdc-button mdc-button--raised btn btn-primary me-2" |
| 143 | + name="submit" |
| 144 | + accesskey="s" |
| 145 | + th:value="#{screen.pm.button.submit}" |
| 146 | + th:attr="data-processing-text=#{screen.welcome.button.loginwip}" |
| 147 | + value="SUBMIT" |
| 148 | + id="submit" |
| 149 | + type="submit" |
| 150 | + disabled="true"> |
| 151 | + <span class="mdc-button__label" th:text="#{screen.pm.button.submit}">Submit</span> |
| 152 | + </button> |
| 153 | + <a class="mdc-button mdc-button--outline btn btn-outline-secondary" th:href="@{/login}"> |
| 154 | + <span class="mdc-button__label" th:text="#{screen.pm.button.cancel}">CANCEL</span> |
| 155 | + </a> |
| 156 | + </div> |
| 157 | + </form> |
| 158 | + |
| 159 | + <p id="pwddesc" th:unless="${passwordManagementEnabled}" |
| 160 | + th:utext="${expiredPass} ? #{screen.expiredpass.message('/console/account/passwordRecovery')} : #{screen.mustchangepass.message('/console/account/passwordRecovery')}">Expired/Must Change Password text</p> |
| 161 | + |
| 162 | + </div> |
| 163 | +</main> |
| 164 | +</body> |
| 165 | +</html> |
0 commit comments