foo
This commit is contained in:
parent
29519eea5f
commit
4f3bade180
3
main.go
3
main.go
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue