Skip to content

Edit Number of Invalid Attempts to Lockout in DNN 5

by on June 1, 2011

To change the number of invalid user login attempts in DNN 5 you will need to edit the web.config file (located in the root of your DNN installation). This is for the default membership provider; ASPNetSqlMembershipProvider.

Edit the Membership Provider Settigns

  1. Go to the <membership><providers> node in the web.config
  2. Find the <add name=”AspNetSqlMembershipProvider”> tag
  3. Add the following parameter to the tag : maxInvalidPasswordAttempts="200” (replace the number with the number of attempts you would like to use)
  4. You should now have a tag that look like the following & save the file

<add description="Stores and retrieves membership data from the local Microsoft SQL Server database" type="System.Web.Security.SqlMembershipProvider" name="AspNetSqlMembershipProvider" connectionstringname="SiteSqlServer" enablepasswordretrieval="true" enablepasswordreset="true" requiresquestionandanswer="false" minrequiredpasswordlength="7" minrequirednonalphanumericcharacters="0" requiresuniqueemail="false" passwordformat="Encrypted" applicationname="DotNetNuke" maxinvalidpasswordattempts="200" />

Check that your edit has taken

  1. Go to Admin > Users
  2. At the top, click on the “User Settings” link
  3. You should now see the new setting under Membership Provider Settings > “Maximum No of Invalid Attempts”


One Comment
  1. AREZ permalink

    Thanks it’s very usefull 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: