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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCreate User ValidationCreate User Validation
Previous
 
Next
New Post
8/12/2008 7:29 PM
 

When a user is create using the "usercontroller.createuser" method in DNN, is there some kind of automatic validation that happens for the password? When i looked into the DNN code, there was a method called "ValidatePassword". But that is called only when a password is changed (not when the user is created)... But I was wondering if internally DNN calls "ValidatePassword" when a user is created using the createuser method...Is that right? Thanks in advance!!

 
New Post
8/13/2008 10:17 AM
 

I don't believe it is but would have to step through the code to verify. Why I don't think it is called is because an AD user who gets logged in automatically gets created just fine whether their password is below the minimum length required or not.

 
New Post
8/13/2008 11:26 AM
 

Thanks for the reply Mike...In that case, what does the ValidatePassword method do? There is a line within that method which computes the password length as "MembershipProviderConfig.MinPasswordLength" and then verifies against the userprovided password...It also does some validation against a regular expression...So is this method called only when a user change their password and not when a user is created?

 
New Post
8/13/2008 12:02 PM
 

I guess the password length depends on the setting in your web config...There is an entry in the web config for membership provider which says "minrequiredpasswordlength" and if the random generated password is less than the specified length (when creating a user), the error gets thrown...Can someone confirm?

 
New Post
8/13/2008 3:18 PM
 

This was the fix i did...after DNN generated the radom password, I called upon the validate passoword function and passed the temporary password as a parameter... I had a while loop going for this. The code will enter the while loop when the random password does not meet the requirements..and inside the while loop i generate one more random password and check for the condition again. This seems to have solved the issue

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCreate User ValidationCreate User Validation


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