I want to restrict password strength with below mentioned properties:: Password strength:
- 1.Contain characters from three of the following four categories:
English uppercase characters (A through Z)
English lowercase characters (a through z)
Base 10 digits (0 through 9)
Non-alphabetic characters (for example, !, $, #, %)
- 2.password Not contain the user's account name
I can easily achieve 1st condition by providing regex to PasswordStrengthRegularExpression
attribute in web.config file under membership section
But the problem is with 2nd one(password Not contain the user's account name) what should i do to achieve that.