Revo 2.2.13
I have the Login snippet set up according to the docs and all seems to run ok, except for the Forgot Password.
Here are the snippet calls in my pages:
The Forgot Password page (id 7):
[[!ForgotPassword? &resetResourceId=`8` &tpl=`lgnForgotPassTpl`]]
Reset Password Handler page (id 8 ):
[[!ResetPassword? &loginResourceId=`6`]]
Login page (id 6);
[[!Login? &loginTpl=`lgnLoginTpl2`
&logoutTpl=`lgnLogoutTpl`
&errTpl=`lgnErrTpl`
&loginResourceId=`9`
&postHooks=`userLandingPage`
&logoutResourceId=`6`
&logoutMsg=`Goodbye!`
]]
The password reset email arrives at the correct address and looks like:
theusername,
To activate your new password, please click on the following link:
http://mydomain/index.php?id=8&lp=NzYxcHdxc2Y%253D&lu=YW5kZXJzb24tcGhhcm0%253D
If successful you can use the following password to login:
Password: 761pwqsf
If you did not request this message, please ignore it.
Thanks,
Site Administrator
(Note the link here is to the handler, not the login page. Is this correct?)
If I click on the link I arrive at the default (Home) page. I click through to the login page (id 6) and try to login with the new password, but it fails with the following message:
The username or password you entered is incorrect. Please check the username, re-type the password, and try again.
I had a look in my database before and after password resets and nothing appears to change (modx_users table). (The original password still works and I can login with that, so def no change in the db).
In my error log, the only entries which may be related to this issue are:
[2014-05-21 09:19:29] (INFO @ /mydomain/index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 9
[2014-05-21 09:19:29] (INFO @ /mydomain/index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 25
[2014-05-21 09:19:29] (INFO @ /mydomain/index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 26
[2014-05-21 09:19:29] (INFO @ /mydomain/index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 5
[2014-05-21 09:19:29] (INFO @ /mydomain/index.php) Principal 0 does not have permission to load object of class modDocument with primary key: 5
(The id of the user is 5, in the modx_users table. Nor sure where the ids 25 and 26 apply to)
I see that there was a bug related to this issue reported back in (
http://bugs.modx.com/issues/6658), although my error messages are different, but there is no indication as to whether it has been worked on or fixed.
Any suggestions as to a cause and cure to make my passwords reset?