From 1eb8355ac8321c937ae8e884f857f676ab72e609 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Dec 2017 08:37:01 -0500 Subject: [PATCH] Fix wrong condition Grmbl --- mod/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/settings.php b/mod/settings.php index 6ac3af285c..9af354a9bc 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -383,8 +383,8 @@ function settings_post(App $a) { $err = true; } - if (User::authenticate(intval(local_user()), $_POST['opassword'])) { // check if the old password was supplied correctly before changing it to the new value + if (!User::authenticate(intval(local_user()), $_POST['opassword'])) { notice(t('Wrong password.') . EOL); $err = true; } -- 2.39.5