Use Config wrapper instead of direct config retrieval

This commit is contained in:
Hypolite Petovan 2018-03-21 08:54:58 -04:00
parent fd9171a40e
commit cd7993f869

View File

@ -390,7 +390,7 @@ function settings_post(App $a)
$err = true;
}
if (!$a->getConfigValue('system', 'disable_password_exposed', false) && User::isPasswordExposed($newpass)) {
if (!Config::get('system', 'disable_password_exposed', false) && User::isPasswordExposed($newpass)) {
notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL);
$err = true;
}