Validating password with regular expressions using CreateUserWizard
Hi,
I am using CreateUserWizard control for registering users, it works great but I want it to validate the password input through regular expressions. The control is not validating the passwords correctly.
I have got the solution. I am using regular expressions for validating passwords according to Microsoft Best Practices. Now it is running as I want it to.
Validating password with regular expressions using CreateUserWizard
Hi,
I am using CreateUserWizard control for registering users, it works great but I want it to validate the password input through regular expressions. The control is not validating the passwords correctly.
Here is my provider configuration:
<add name="UmbracoMembershipProvider"
type="umbraco.providers.members.UmbracoMembershipProvider"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
defaultMemberTypeAlias="User"
minRequiredPasswordLength="8"
passwordStrengthRegularExpression= "^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$"
passwordFormat="Hashed" />
Whats wrong?
Thanks beforehand.
Regards,
Eduardo Macho
Eduardo,
So how do you want your password to be validated? what passwords did you test with?
Looking forward to your info.
Cheers,
/Dirk
Hi Dirk,
I have got the solution. I am using regular expressions for validating passwords according to Microsoft Best Practices. Now it is running as I want it to.
Thank you for your response.
Regards,
Eduardo
is working on a reply...