mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/13203] Use string_compare method in passwords drivers
PHPBB3-13203
This commit is contained in:
@@ -54,7 +54,7 @@ class sha1_wcf1 extends base
|
||||
else
|
||||
{
|
||||
// Works for standard WCF 1.x, i.e. WBB3 and similar
|
||||
return $hash === sha1($user_row['user_passwd_salt'] . sha1($user_row['user_passwd_salt'] . sha1($password)));
|
||||
return $this->helper->string_compare($hash, sha1($user_row['user_passwd_salt'] . sha1($user_row['user_passwd_salt'] . sha1($password))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user