Skip to content

Commit

Permalink
Update ResetPassword.razor
Browse files Browse the repository at this point in the history
The minimum length is 12, not 10
  • Loading branch information
carlsixsmith-moj committed Aug 14, 2024
1 parent 9e3d5fb commit 1a5d65b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

[Required]
[DataType(DataType.Password)]
[StringLength(16, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 10)]
[StringLength(16, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 12)]
[RegularExpression(@"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$",
ErrorMessage = "Password must contain at least one uppercase and lowercase letter, one number and one non-alphanumeric character (e.g., @, !, ?, *, .)")]
public string Password { get; set; } = "";
Expand All @@ -136,4 +136,4 @@
[Required]
public string Token { get; set; } = "";
}
}
}

0 comments on commit 1a5d65b

Please sign in to comment.