Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to Change the Maximum Number of Invalid Password AttemptsHow to Change the Maximum Number of Invalid Password Attempts
Previous
 
Next
New Post
5/16/2012 4:05 PM
 

How do I change the maximum number of invalid password attempts on my website? I went into the user accounts section and saw that it said you must change this in the web.config... I went onto the web.config and found the following line of code that I thought would be needed to change the maximum number of invalid password attempts:

maxInvalidPasswordAttempts="int"            The number of failed password attempts, or failed password answer attempts that are allowed before locking out a user?s account

This line of code can be found about 2/3 of the way down the web.config file. I'm confused by what is meant by int. How do I change the maximum number of invalid password attempts?  Similarly, how do I change the minimum password length?

 
New Post
5/16/2012 5:47 PM
 

Look in your web.config file in the root directory, if you search that file for the word 'password' you will find the parameter and value notes there as you said. AFAIK it will modify the number of times the database will allow password attempts before it locks that user out of the system for a default amount of time. int means the the parameter is an integer and will accept a value like 7

 
New Post
5/16/2012 5:47 PM
 

A little after that line in the web.config file you'll find another line that looks like

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database" />

You would add the attribute there, ex:

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" maxInvalidPasswordAttempts="15" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database" />


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/16/2012 5:56 PM
 

You would have to add that parameter to the AspNetSqlMembershipProvider string that isn't commented out below. This will tell the database how many log in attempts before that users record gets locked out for a specified period of time. 

 
New Post
5/17/2012 9:34 AM
 
Thanks!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to Change the Maximum Number of Invalid Password AttemptsHow to Change the Maximum Number of Invalid Password Attempts


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out