Custom forgot password control for email

Posted by Community Admin on 04-Aug-2018 16:23

Custom forgot password control for email

All Replies

Posted by Community Admin on 18-Jul-2011 00:00

Hello,
 I was wondering if anyone has created a custom login control that allows visitors to user either their username or email address to reset the password. If so, would you be willing to share the control?

I've had users complain that they can't remember their logins in order to reset the password.

Posted by Community Admin on 19-Jul-2011 00:00

Hi Amanda Shafer,

The login control that comes out of the box with Sitefinity offers similar functionality - when you click on the Forgot your password  link located below the Login control you can fill in your username and a reset password will be sent to you on the email you have used when registering that user. The only condition that needs to be set in order to make this work is to have the SMTP settings under Administration->Settings->Advanced->System->SMTP configured properly, so Sitefinity can send emails. Just to make sure we're talking about the same thing, I am attaching a short video demonstrating how the stock functionality works, please do not hesitate to let us know if this is not the one you need. Thanks in advance.

Kind regards,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 19-Jul-2011 00:00

Hi Boyan,

Thank you for the reply. I'm looking for a control that will allow the user to put in their email, instead of the username as is the default for the built-in control. Our members have trouble remembering their usernames in order to reset the password.

Thanks,
Amanda

Posted by Community Admin on 26-Jul-2011 00:00

Hello Amanda Shafer,

Thank you very much for the clarification. I have researched the control's functionality, and implementing the desired scenario would not be that trivial, as it will require a custom control that inherits from PasswordRecoveryForm and adding a custom logic that looks for a user by email, not username. What I can offer you as a workaround is to use the "contact administrator' functionality the Password recovery form is offering, where your users can sedn the website administrator an email with their email/username and he/she can recover their login data and send it back to them. Another option, would be to simply copy the email as username as this will surely alleviate the problem with users forgetting their username, and they will be able to use the out of the box password recovery functionality.

Greetings,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 11-Aug-2011 00:00

Related to the SMTP settings, how can I force the forgot password functionality to authenticate via SMTP?  From server email logs, it looks as though Sitefinity only passes the custom email specified for the password recovery and no password.  This means the server needs to allow for anonymous authentication, and this is very bad.  Am I missing something?  If so, how can I go about forcing the forgot password email to provide a password?

Thanks!

Posted by Community Admin on 12-Aug-2011 00:00

Hi Michael,

There's a required element that needs to be present in the recoveryMailBody value, in order for this functionality to work. Can you please make sure that your recoveryMailBody(please find attached a screenshot demonstrating the location of these settings) contains:

<%\\s*Password\\s*%>

element is included, as it is the only mechanism for the body to include the recovered password. Please try this functionality and let me know if any problems persist, or this is not the exact functionality you want to achieve.

Kind regards,
Boyan Barnev
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 16-Aug-2011 00:00

Hi Boyan,

Thank you for the response.  I re-read my post, and I believe I wasn't too clear, my apologies.  My issue is not actually recovering of the actual password, but forcing the email that is generated by Sitefinity to authenticate on outgoing to the SMTP server:

Example:
email from: passwordrecovery@mydomain.com
password: <no password specified>
SMTP: can't send mail, passwordrecovery@mydomain.com must provide password.

Posted by Community Admin on 19-Aug-2011 00:00

Hi Michael,

I hope I'm not getting you wrong, but this functionality is supported out of the box. If you haven't configured Sitefinity's SMTP settings, the system will not be able to authenticate properly on the SMTP server, and the message will not pass through. Please take a look at this article form our online documentation, I believe you might find it useful.

Kind regards,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed