diff --git a/api/models/authentication/LoginForm.php b/api/models/authentication/LoginForm.php index d56e7b6..c1ad5e6 100644 --- a/api/models/authentication/LoginForm.php +++ b/api/models/authentication/LoginForm.php @@ -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(); }