czetsuya's tech ― I'm working on a change password form when I encountered this strange behavior from mvc3. I created a simple form and change password model with 3 fields (old, new, confirm password). Then I extended ValidationAttribute to validate the password's length.ValidatePasswordLengthAttributepublic class ValidatePasswordLengthAttribute : ValidationAttribute { private readonly int _minCharacters = Membership.Provider.MinRequiredPasswordLength; public override string FormatErrorMessage[...]
What would you say?
Be the first to comment on this blog post! Sign in or Create an account.