mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 08:13:14 +02:00
[feature/passwords] Properly set convert_flag and add test for it
PHPBB3-11610
This commit is contained in:
@@ -126,6 +126,9 @@ class phpbb_crypto_manager_test extends PHPUnit_Framework_TestCase
|
||||
$password .= $this->pw_characters[mt_rand(0, 66)];
|
||||
$this->assertEquals(false, $this->manager->check_hash($password, $hash));
|
||||
}
|
||||
|
||||
// Check if convert_flag is correctly set
|
||||
$this->assertEquals(($hash_type !== 'crypto.driver.bcrypt_2y'), $this->manager->convert_flag);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user