There's several things that you'll need to take into account in order to achieve the described scenario.
1. The PasswordRecoveryForm control can be used separately like this:
However, if the password is not stored in clear, or encrypted format, Sitefinity will not be able to retrieve it, so it will reset the password and send you the new one on the provided email. Please take a look at the attached screenshots demonstrating two important settings that you'll need to configure if you'll be usign the out-of-the box PasswordRecoveryForm - the password format should be set to different than Hashed, and also you'll need to set enablePasswordRecovery to "true". If you'll be developing a user control to handle this functionality, you can still call:
password = user.GetPassword();
The default implementation is looking for a user by his/her username, however if you prefer on using email, you can still do something like:
UserManager manager = UserManager.GetManager();
var user = manager.GetUserByEmail(
var password = user.GetPassword();
var message = EmailSender.CreatePasswordMail(manager.Provider.Name, user.UserName, password);
var emailSender = EmailSender.Get();
I hope you find the above information useful, if you need any further assistance in implementing the desired functionality, or have some additional questions, please do not hesitate to get back to me. I'll be glad to assist you further.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>