PrajapatiRaj / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Password recovery errors on submission of new password #144

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Click "Lost Password?".
2. Enter user name, click Recovery, get email.
3. Enter link from email.
4. Enter new password (twice), click Save.

Error (attached) is presented and page fails to load.
Tried entering the activation link again and you get the message "Incorrect 
recovery link."

Password appears to have been changed.

Latest source from github at the time or reporting.

Original issue reported on code.google.com by david.ne...@bigsoft.co.uk on 2 Oct 2013 at 4:44

Attachments:

GoogleCodeExporter commented 8 years ago
1. it's because in User model, updateSession() is called in afterSave() but one 
variable user = null. 

2. to fix: 
pass a false param to stop running updateSession in afterSave() in User model 
when reset password.

Original comment by n...@ipokervip.net on 25 Nov 2014 at 1:04