mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
[Fixes #9177] Password Hash Cost setting for Security component
This commit is contained in:
@ -72,6 +72,7 @@ class SecurityTest extends TestCase
|
||||
return;
|
||||
}
|
||||
$this->security->passwordHashStrategy = $passwordHashStrategy;
|
||||
$this->security->passwordHashCost = 4; // minimum blowfish's value is enough for tests
|
||||
|
||||
$password = 'secret';
|
||||
$hash = $this->security->generatePasswordHash($password);
|
||||
|
Reference in New Issue
Block a user