How to programatically "Recover password" in ASP.Net login control

G

Guest

Hi,

We use the ASP.net loginControls and the DB schema.
How to programmatically activate the "PasswordRecovery" of a specific
end-user when a user clicks my web application's button?
I need to send a specific user an email with a new "reset" password.

I thought of including an invisible PasswordRecovery Control and initialize
the "User Name" field.
PasswordRecovery1.UserName = "zako";
PasswordRecovery1.Visible = false;
But how to simulate a "click" of the PasswordRecovery control's "Submit"
button?

Thanks!
 
C

Cowboy \(Gregory A. Beamer\)

How far are you taking this? To the point of sending the email, or are you
taking over that?

Resetting the password is done on the MembershipUser object, so if you send
the email, you can use that. To go any deeper, you will likely have to
inherit from the class and override the methods.
 
G

Guest

Hi,

I need to programatically reset an end-user's password from the server side.

I have another question now -
How can my server app reset a password in a different membership provider
than the one my server app is using?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top