Commit 4aeec3be authored by mose's avatar mose

fixed the hash that suffered from previous fix

parent 7a37c931
......@@ -349,7 +349,7 @@ class UsersLib extends TikiLib {
return USER_NOT_FOUND;
$res = $result->fetchRow(DB_FETCHMODE_ASSOC);
$hash=md5($user.$pass);
$hash=md5($user.$pass.$res["email"]);
$hash2 = md5($pass);
// next verify the password with 2 hashes methods, the old one (pass)) and the new one (login.pass;email)
if($feature_challenge=='n' || empty($response)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment