PasswordRecovery issue

P

paul.haines

Does anyone know how to change the current mode in the
PasswordRecovery control?

I have an instance on the "login.aspx" page and, after the user has
successfully had their password emailed to them I was hoping I could
re-set it back to the "enter username", (or "enter password answer" as
the name's already entered), so they can try again. (Or even just show
a button which, when pressed, causes the same thing).

Any suggestions for how to do this?

I can inherit from the PasswordRecovery control, if required.
 
C

Cowboy \(Gregory A. Beamer\)

There are events that you can use on each of the controls. With
PasswordRecovery, you can do the work in SendingMail
(http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.passwordrecovery.sendingmail.aspx).

You will then reset the password using password change abilities on the
MembershipUser object and aler the message:

e.Message.Body = "{your message here}"

Then let the system do its business.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 
P

paul.haines

There are events that you can use on each of the controls. With PasswordRecovery, you can do the work in SendingMail (http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.pa...).
You will then reset the password using password change abilities on the MembershipUser object and aler the message:

e.Message.Body = "{your message here}"

Then let the system do its business.

I don't think I understand what you're suggesting. Do you mean all I
need to is clear the entered password and the control will revert back
to the "enter password" stage?

I'm not trying to edit anything with the email, (that works as
required), but do need to change the control's stage, so that the user
can get their password re-sent to them, or even choose another
username.
 

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

Top