From: Nicolas LÅ“uillet Date: Mon, 7 Oct 2013 12:56:21 +0000 (+0200) Subject: bug fix: changing password was buggy X-Git-Tag: 1.1.0~9 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1e98ee1de08d319facfa4c74d87c51506c662b78;hp=-c;p=github%2Fwallabag%2Fwallabag.git bug fix: changing password was buggy --- 1e98ee1de08d319facfa4c74d87c51506c662b78 diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 0662581b..5c40b026 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -108,8 +108,8 @@ class Database { public function updatePassword($userId, $password) { $sql_update = "UPDATE users SET password=? WHERE id=?"; - $params_update = array($password, $id); - $this->updateUserConfig($userId, 'password', $password); + $params_update = array($password, $userId); + $query = $this->executeQuery($sql_update, $params_update); } public function updateUserConfig($userId, $key, $value) {