0

Hi!

I want to retrieve the password which is entered in the CreateUserWizardStep but it only returns empty string.

When I try to retrieve CreateUserWizard.UserName it returns the username but when i try to retrieve CreateUserWizard.Password it returns an empty string.

Thanks!

1
Contributor
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Donish
0

Hi!

I want to retrieve the password which is entered in the CreateUserWizardStep but it only returns empty string.

When I try to retrieve CreateUserWizard.UserName it returns the username but when i try to retrieve CreateUserWizard.Password it returns an empty string.

CreateUserWizard1.MailDefinition.BodyFileName = @"~/Resources/EmailBodyText.txt";
                        ListDictionary replacements = new ListDictionary();
                        replacements.Add("<%UserName%>", CreateUserWizard1.UserName);
                        replacements.Add("<%Password%>", CreateUserWizard1.Password);

CreateUserWizard1.MailDefinition.From = "noreply@noreply.com";
                        CreateUserWizard1.MailDefinition.Subject = "Registration";

                        fileMsg = CreateUserWizard1.MailDefinition.CreateMailMessage(userEmailAdd, replacements, this);

                        SmtpClient newSmtp = new SmtpClient();
                        newSmtp.Send(fileMsg);

Thanks!

0

Can it be because of using passwordFormat="Hashed" in web.config?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.