Browse Source

Rename checkPasswordExposed to isPasswordExposed

pull/4640/head
Hypolite Petovan 3 years ago
parent
commit
701fd41463
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mod/settings.php
  2. +1
    -1
      src/Model/User.php

+ 1
- 1
mod/settings.php View File

@ -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;
}


+ 1
- 1
src/Model/User.php View File

@ -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;
}


Loading…
Cancel
Save