Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eduardo 106 posts 130 karma points
    Oct 03, 2010 @ 11:33
    Eduardo
    0

    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

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 03, 2010 @ 13:39
    Dirk De Grave
    0

    Eduardo,

    So how do you want your password to be validated? what passwords did you test with?

     

    Looking forward to your info.

    Cheers,

    /Dirk

  • Eduardo 106 posts 130 karma points
    Oct 03, 2010 @ 14:07
    Eduardo
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft