This commit is contained in:
Your Name 2024-10-08 18:48:17 -04:00
parent 29519eea5f
commit 4f3bade180
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func main() {
e.Label = "Old Password"
e.Type = "password"
e.Validator = ""
e.Autocomplete = "new-password"
e.FailMessage = "Passsword Incorrect"
e.Name = "oldpassword"
f.Add(e)
@ -62,6 +63,7 @@ func main() {
e.FailMessage = "Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter and one digit"
e.Validator = "minlength=8;haslowercase;hasuppercase;hasdigit"
e.Name = "newpassword"
e.Autocomplete = "new-password"
f.Add(e)
e = forms.NewElement()
@ -70,6 +72,7 @@ func main() {
e.FailMessage = "Passwords do not match"
e.Validator = "mustmatch=newpassword"
e.Name = "confirmpassword"
e.Autocomplete = "new-password"
f.Add(e)
e = forms.NewElement()