CMS MADE SIMPLE FORGE

Frontend Users

 

[#7070] "Remember me" function doesn't work if i close and open the browser.

avatar
Created By: valerio (valeriop@)
Date Submitted: Tue Nov 01 09:32:43 -0400 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.16.2
CMSMS Version: 1.10
Severity: Major
Resolution: Fixed
State: Closed
Summary:
"Remember me" function doesn't work if i close and open the browser.
Detailed Description:
Hi.
I found in the FrontEndUsers.module.php code a bug at line 1318:

$val['p'] = md5($password);

When you pass a  $password to the md5 function, you have forgotten to add the
Password Salt code.

I fix the problem adding the following code:

    // start valeriop@
    $this->_load();
    $val['p'] = md5($password.$this->GetPreference('pwsalt',''));
    // end valeriop@


    // this is the old code
    //$val['p'] = md5($password);


Best regards, 
                      valeriop@



History

Updates

Updated: 2012-03-31 15:04
state: Open => Closed

Updated: 2011-12-22 21:40
resolution_id: => 7