-2

How Can I remove Functionality of max Invalid Password Attempts from Asp.Net Membership.?

<membership>
            <providers>
                <clear/>
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
             connectionStringName="con"
             enablePasswordRetrieval="false"
             enablePasswordReset="true" 
             requiresQuestionAndAnswer="false" 
             requiresUniqueEmail="false"
             maxInvalidPasswordAttempts="5"
             minRequiredPasswordLength="6"
             minRequiredNonalphanumericCharacters="0" 
             passwordAttemptWindow="10" 
             applicationName="/"/>
            </providers>
        </membership>
Harshit Tailor
  • 3,261
  • 6
  • 27
  • 40
  • 2
    Possibly a duplicate of http://stackoverflow.com/questions/796472/disabling-account-lockout-with-the-sqlmembershipprovider – HaemEternal Jan 04 '13 at 10:20

1 Answers1

3

This thread might help you:

Disabling account lockout with the SqlMembershipProvider

Basically you could just set number of attempts to Int32.MaxValue. It's not exactly what you wanted but it will work for most cases.

Community
  • 1
  • 1
Moriya
  • 7,750
  • 3
  • 35
  • 53