49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
<form action="/user/change_password"
|
|
method="POST"
|
|
enctype="application/x-www-form-urlencoded">
|
|
<fieldset>
|
|
<h2>Change Password:</h2>
|
|
|
|
<label class="password-label">
|
|
Current Password
|
|
<input type="password"
|
|
name="password_current"
|
|
class="password-input"
|
|
required
|
|
minlength="8"
|
|
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
|
|
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters">
|
|
</label>
|
|
|
|
<label class="password-label">
|
|
New Password:
|
|
<input type="password"
|
|
name="password"
|
|
class="password-input"
|
|
required
|
|
minlength="8"
|
|
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
|
|
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters">
|
|
</label>
|
|
|
|
<label class="password-label">
|
|
Re-enter New Password:
|
|
<input type="password"
|
|
name="password_confirmation"
|
|
class="password-input"
|
|
required
|
|
minlength="8"
|
|
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
|
|
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters">
|
|
</label>
|
|
|
|
<label id="error_container" style="display:none">
|
|
Error:
|
|
<br>
|
|
<span id="span_error"></span>
|
|
</label>
|
|
|
|
<button type="submit">Submit</button>
|
|
</fieldset>
|
|
</form>
|