mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 15:10:22 +05:30
Более точное условие для автоматической смены пароля в форме входа
This commit is contained in:
parent
b6b579b721
commit
93f8d170dc
@ -77,7 +77,7 @@ class LoginForm extends ApiForm {
|
||||
}
|
||||
|
||||
$account = $this->getAccount();
|
||||
if ($account->password_hash_strategy === Account::PASS_HASH_STRATEGY_OLD_ELY) {
|
||||
if ($account->password_hash_strategy !== Account::PASS_HASH_STRATEGY_YII2) {
|
||||
$account->setPassword($this->password);
|
||||
$account->save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user