mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[feature/passwords] Properly set convert_flag and add test for it
PHPBB3-11610
This commit is contained in:
@@ -196,10 +196,14 @@ class phpbb_crypto_manager
|
||||
return $this->helper->check_combined_hash($password, $stored_hash_type, $hash);
|
||||
}
|
||||
|
||||
if ($stored_hash_type->get_type() !== $this->type)
|
||||
if ($stored_hash_type->get_name() !== $this->type)
|
||||
{
|
||||
$this->convert_flag = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->convert_flag = false;
|
||||
}
|
||||
|
||||
return $stored_hash_type->check($password, $hash);
|
||||
}
|
||||
|
Reference in New Issue
Block a user