CMS MADE SIMPLE FORGE

Frontend Users

 

[#10631] Temporary code for resetting password doesn't work

avatar
Created By: frank (staartmees)
Date Submitted: Thu Sep 10 01:26:24 -0400 2015

Assigned To: Robert Campbell (calguy1000)
Version: 1.30.4
CMSMS Version: 1.12
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Temporary code for resetting password doesn't work
Detailed Description:
When trying to reset my password everything works fine. When sending the new
password from the websform, erroroccurs "Sorry, It appears that the temporary
code you received for resetting your password is now invalid (temporary codes
can only be used once). Please try again."


History

Comments
avatar
Date: 2015-09-10 21:13
Posted By: Robert Campbell (calguy1000)

fixed in svn. thanks
      
avatar
Date: 2015-09-23 05:01
Posted By: stephane (stephane85)

I found 2 errors in clas.FrontEndUsersManipulator.php, in the function
SetUserTempCode($uid, $code) (line 177) :

the first: sql error: "uerid" does not exist in where clause (typo error, it is
'userid' ..... line 186)

the second: sql error: "syntax error near '?' " .....

line 187 : $db->Execute($q);

must be: $db->Execute($q, array($uid));

and all works fine after that :-)

hope this will help you saving time in debugging ;-)


      
avatar
Date: 2015-09-23 05:02
Posted By: stephane (stephane85)

oupssssss..... I didn't read your comment before posting^^ sorry 
      
Updates

Updated: 2015-09-30 10:18
state: Open => Closed

Updated: 2015-09-10 21:13
resolution_id: => 7