From fd9171a40e8899f35315daa3c57bbeea7758d287 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 21 Mar 2018 02:38:04 -0400 Subject: [PATCH] Fix egregious whitespace issue in mod/settings --- mod/settings.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 1473f6d422..0ce60c7041 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -388,18 +388,18 @@ function settings_post(App $a) if (!x($newpass) || !x($confirm)) { notice(L10n::t('Empty passwords are not allowed. Password unchanged.') . EOL); $err = true; - } + } if (!$a->getConfigValue('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; } - // check if the old password was supplied correctly before changing it to the new value - if (!User::authenticate(intval(local_user()), $_POST['opassword'])) { - notice(L10n::t('Wrong password.') . EOL); - $err = true; - } + // check if the old password was supplied correctly before changing it to the new value + if (!User::authenticate(intval(local_user()), $_POST['opassword'])) { + notice(L10n::t('Wrong password.') . EOL); + $err = true; + } if (!$err) { $result = User::updatePassword(local_user(), $newpass);