]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - settings/user-edit.php
Fix password change error
[irc/unrealircd/unrealircd-webpanel.git] / settings / user-edit.php
index 6c5f76c919f4b4aacd2ec596ff9e8a5a30cc4376..8c643970d16e2bcb03601a8abb58aa5bb71f897c 100644 (file)
@@ -40,13 +40,13 @@ if ($postbutton && $can_edit_profile)
     if ($array['update_pass'] == $array['update_pass_conf'])
     {
         $array['update_pass_conf'] = password_hash($array['update_pass_conf'], PASSWORD_ARGON2ID);
-        $array['update_pass'] = false;
+        unset($array['update_pass']);
     }
     else
     {
         Message::Fail("Could not update password: Passwords did not match");
-        $array['update_pass'] = false;
-        $array['update_pass_conf'] = false;
+        unset($array['update_pass']);
+        unset($array['update_pass_conf']);
     }
     $edit_user->update_core_info($array);
     $edit_user = new PanelUser($edit_user->username);