Skip to content
Snippets Groups Projects
Commit c87c63bc authored by amit r's avatar amit r
Browse files

#152721420::amit::update md5 hash to sha256 for forgot password

parent 86cbaacb
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ if (isset($_REQUEST['username']) && isset($_REQUEST['emailId'])) {
'username' => $username,
'email' => $email,
'time' => $time,
'hash' => md5($username.$time)
'hash' => hash('sha256',$username.$time)
)
);
$trackURL = Vtiger_ShortURL_Helper::generateURL($options);
......
......@@ -31,7 +31,7 @@ class Users_ForgotPassword_Handler {
$currentTime = time();
if($expiryTime > $currentTime) {
$secretToken = uniqid();
$secretHash = md5($userName.$secretToken);
$secretHash = hash('sha256',$userName.$secretToken);
$options = array(
'handler_path' => 'modules/Users/handlers/ForgotPassword.php',
'handler_class' => 'Users_ForgotPassword_Handler',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment