Merge pull request #13832 from mexon/console-set-password
Update use of PasswordExposed API
This commit is contained in:
commit
a0dec23f2d
|
@ -864,7 +864,7 @@ class User
|
||||||
try {
|
try {
|
||||||
$passwordExposedChecker = new PasswordExposed\PasswordExposedChecker(null, $cache);
|
$passwordExposedChecker = new PasswordExposed\PasswordExposedChecker(null, $cache);
|
||||||
|
|
||||||
return $passwordExposedChecker->passwordExposed($password) === PasswordExposed\PasswordStatus::EXPOSED;
|
return $passwordExposedChecker->passwordExposed($password) === PasswordExposed\Enums\PasswordStatus::EXPOSED;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Logger::error('Password Exposed Exception: ' . $e->getMessage(), [
|
Logger::error('Password Exposed Exception: ' . $e->getMessage(), [
|
||||||
'code' => $e->getCode(),
|
'code' => $e->getCode(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user