aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-07 14:56:21 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-10-07 14:56:21 +0200
commit1e98ee1de08d319facfa4c74d87c51506c662b78 (patch)
treef97563f6436b49aeeeb25866fa1af571537941bd
parent5011388f39432f810e397a60d9b200faba6c868b (diff)
downloadwallabag-1e98ee1de08d319facfa4c74d87c51506c662b78.tar.gz
wallabag-1e98ee1de08d319facfa4c74d87c51506c662b78.tar.zst
wallabag-1e98ee1de08d319facfa4c74d87c51506c662b78.zip
bug fix: changing password was buggy
-rw-r--r--inc/poche/Database.class.php4
1 files changed, 2 insertions, 2 deletions
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 {
108 public function updatePassword($userId, $password) 108 public function updatePassword($userId, $password)
109 { 109 {
110 $sql_update = "UPDATE users SET password=? WHERE id=?"; 110 $sql_update = "UPDATE users SET password=? WHERE id=?";
111 $params_update = array($password, $id); 111 $params_update = array($password, $userId);
112 $this->updateUserConfig($userId, 'password', $password); 112 $query = $this->executeQuery($sql_update, $params_update);
113 } 113 }
114 114
115 public function updateUserConfig($userId, $key, $value) { 115 public function updateUserConfig($userId, $key, $value) {