locked
The password supplied is invalid. RRS feed

  • Question

  • User-908650885 posted

    Hi everyone,

    Im creating a new user with create user wizard control but facing with this error:

    The password supplied is invalid.  Passwords must conform to the password strength requirements configured for the default provider.

    this is my web.config:

    <membership defaultProvider="MyMembershipProvider">
       <providers>
          <add name="MyMembershipProvider"
             type="System.Web.Security.SqlMembershipProvider"
             passwordFormat="Clear"
             minRequiredNonalphanumericCharacters="0"
             requiresQuestionAndAnswer="false"
             connectionStringName="LoginConnectionString"/>
        </providers>
    </membership>
    

    I dont want any restriction to password.any password format will be accepted.

    how to fix this error?

    Tuesday, June 3, 2014 6:48 AM

Answers

  • User-1353043493 posted

    try this property

    minRequiredPasswordLength="1"
    passwordStrengthRegularExpression="^([1-zA-Z0-1@.\s]{1,255})$"

    change RegEX as per your requirment.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 3, 2014 8:05 AM