locked
Password Validation Question in Register.aspx RRS feed

  • Question

  • User1628746328 posted

    Can I override this validation to require only alphanumerics? 

     

    case MembershipCreateStatus.InvalidPassword:

    InfoLabel.Text = "The password provided is invalid. " +

    "Please enter a valid password . " +

    "Acceptable passwords are at least 7 characters long and contain at least 1 non-alphanumeric character.";

    break;

    Thanks!

    Doug

    Tuesday, August 12, 2008 12:06 PM

Answers

  • User730446648 posted

    Look in your web.config.

    minRequiredNonalphanumericCharacters="0"

    It's in the <Membership>      <Providers>    Section.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 12, 2008 12:22 PM

All replies

  • User810302116 posted

    Hi,

    What control are using? is it registration wizard

    Thanks

    Tuesday, August 12, 2008 12:14 PM
  • User730446648 posted

    Look in your web.config.

    minRequiredNonalphanumericCharacters="0"

    It's in the <Membership>      <Providers>    Section.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 12, 2008 12:22 PM
  • User1628746328 posted

    THANKS!

    Tuesday, August 12, 2008 12:38 PM