Rename checkPasswordExposed to isPasswordExposed
This commit is contained in:
parent
ca13570251
commit
701fd41463
|
@ -390,7 +390,7 @@ function settings_post(App $a)
|
||||||
$err = true;
|
$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);
|
notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL);
|
||||||
$err = true;
|
$err = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@ class User
|
||||||
* @param string $password
|
* @param string $password
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function checkPasswordExposed($password)
|
public static function isPasswordExposed($password)
|
||||||
{
|
{
|
||||||
return password_exposed($password) === PasswordStatus::EXPOSED;
|
return password_exposed($password) === PasswordStatus::EXPOSED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue