How to change the algorithm for password generation

HelenaG Grulichova asked on March 26, 2012 09:07

How to change the algorithm for password generation

Correct Answer

HelenaG Grulichova answered on March 26, 2012 09:07

If you want to generate passwords as alphanumeric strings (without special characters) or as strings which contain only special characters, you can implement your own algorithm for password generation in the ~\CMSModules\Membership\Pages\Users\User_Edit_Password.aspx.cs file and in the btnGenerateNew_Click method:

protected void btnGenerateNew_Click(object sender, EventArgs e)
{
// Check modify permission
CheckModifyPermissions();
string result = ValidateGlobalAndDeskAdmin();
if (result == String..Empty)
{
string pswd = ...; // your own algorithm
-jh-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.