diff --git a/mod/settings.php b/mod/settings.php index b39ee0b51..162597503 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -390,7 +390,7 @@ function settings_post(App $a) $err = true; } - if (User::checkPasswordExposed($newpass)) { + if (User::isPasswordExposed($newpass)) { notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL); $err = true; } diff --git a/src/Model/User.php b/src/Model/User.php index 331fdccb7..6270ce9bf 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -224,7 +224,7 @@ class User * @param string $password * @return bool */ - public static function checkPasswordExposed($password) + public static function isPasswordExposed($password) { return password_exposed($password) === PasswordStatus::EXPOSED; }