From 701fd41463a1da325cf50084767005af5d3627e6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 21 Mar 2018 02:14:43 -0400 Subject: [PATCH] Rename checkPasswordExposed to isPasswordExposed --- mod/settings.php | 2 +- src/Model/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index b39ee0b51f..162597503c 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 331fdccb7f..6270ce9bf3 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; }