Implement I Forgot My Password I forgot my password
Posted 07 November 2012 - 06:15 PM
I am new to Yii. I am creating a small application.
At the user login option appears comumente Forgot your password?. which prompts the user for the username and email or send you an email with instructions on how to create your new password.
yii see that the login has by default already made, but does not bring the forgot password functionality,
If anyone knows of any extension or module that you bring this to not reinvent the wheel, I researched
but there are more modules that focus on managing all roles and users and that is too
Thanks for the accessory you can give me
Posted 07 November 2012 - 10:47 PM
Here's the basics.
When a user requests a new password (via entering user ID, email, username, whatever you want, plus or minus security questions) you generate a unique hash and save it. Send the user an email with a link to resetpassword controller action.
The action needs to check the GET value of the string and match to DB. If they match you allow them to reset their password (and delete the key afterwards).
Posted 14 November 2012 - 03:02 PM
Also, search this question on stackoverflow.com . I bet it was addressed there a lot :-) (and not in Yii context, which ensures an attention of experienced and talented people from other fields).