]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong condition
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 3 Dec 2017 13:37:01 +0000 (08:37 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 3 Dec 2017 13:37:01 +0000 (08:37 -0500)
Grmbl

mod/settings.php

index 6ac3af285caf95889c7fe739f4f83b68627ee58a..9af354a9bcd3df61a98bdf480826b9b21200249d 100644 (file)
@@ -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;
         }