Parameters for password validation

This commit is contained in:
Nick Penkov
2018-09-21 10:00:17 +02:00
parent 173d059c82
commit 3616a422c1
5 changed files with 30 additions and 13 deletions

View File

@ -24,12 +24,12 @@
<label for="new-password">New password</label>
<input id="new-password" name="new-password" type="password"
pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
pattern="{{.Pattern}}" x-moz-errormessage="{{.PatternInfo}}" required>
<label for="confirm-password">Confirm new password</label>
<input id="confirm-password" name="confirm-password" type="password"
pattern=".{8,}" x-moz-errormessage="Password must be at least 8 characters long." required>
pattern="{{.Pattern}}" x-moz-errormessage="{{.PatternInfo}}" required>
<p>{{.PatternInfo}}</p>
<button type="submit">Update password</button>
</form>