mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
[ticket/12352] Introduce user row to passwords check methods
This will ensure that legacy hash types that might need the user row can properly check if the supplied password is correct. PHPBB3-12352
This commit is contained in:
@@ -51,10 +51,11 @@ interface driver_interface
|
||||
*
|
||||
* @param string $password The password to check
|
||||
* @param string $hash The password hash to check against
|
||||
* @param string $user_row User's row in users table
|
||||
*
|
||||
* @return bool True if password is correct, else false
|
||||
*/
|
||||
public function check($password, $hash);
|
||||
public function check($password, $hash, $user_row = array());
|
||||
|
||||
/**
|
||||
* Get only the settings of the specified hash
|
||||
|
Reference in New Issue
Block a user