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 ...password gnratorpassword gnrator
Previous
 
Next
New Post
7/10/2011 6:44 AM
 
hi

i want to add new user in admin menu , i want to check random password but i dont like that my password have something like %&*(+|>?!@*^%$@*()__!)()(@* or so on ........

I checked and find that the related to this, is :

If Not chkRandom.Checked Then
'1. Check Password and Confirm are the same
If txtPassword.Text <> txtConfirm.Text Then
createStatus = UserCreateStatus.PasswordMismatch
End If
'2. Check Password is Valid
If createStatus = UserCreateStatus.AddUser And Not UserController.ValidatePassword(txtPassword.Text) Then
createStatus = UserCreateStatus.InvalidPassword
End If
If createStatus = UserCreateStatus.AddUser Then
User.Membership.Password = txtPassword.Text
End If
Else
'Generate a random password for the user
User.Membership.Password = UserController.GeneratePassword(8)
End If

but how can i change it to avoid generate non-alphabetic charecters???

Many Thanks
 
New Post
7/20/2011 10:56 AM
 
 
New Post
7/20/2011 11:00 AM
 
and this http://msdn.microsoft.com/en-us/libra...

I assume if you set the numberOfNonAlphanumericCharacters to 0 it will contain only letters and numbers.
 
New Post
7/21/2011 2:06 AM
 
Thanks for your concern !I found they way !It is not depended on what you said , i mean it is not in webconfig.I manipulate User.ascx.vb file and i wrote a password function on my self to generate password by charecters.If you are intersted in knowing my way , feel free to contact me.Again thanks
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...password gnratorpassword gnrator


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