aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/store
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2013-06-01 08:29:37 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2013-06-01 08:29:37 +0200
commit6499b26ae8e148fa5481db5b7a4e9fc0e55aad94 (patch)
tree4974d01d7813d78ae9760332cba3006aaffc20c4 /inc/store
parentda368cc84f4d79afc30052a209502fa8fd17241e (diff)
downloadwallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.tar.gz
wallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.tar.zst
wallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.zip
demo mode (you can't update password in demo mode
Diffstat (limited to 'inc/store')
-rw-r--r--inc/store/sqlite.class.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php
index 4bfbb29e..21081608 100644
--- a/inc/store/sqlite.class.php
+++ b/inc/store/sqlite.class.php
@@ -74,6 +74,13 @@ class Sqlite extends Store {
74 return isset($pass[0]['value']) ? $pass[0]['value'] : FALSE; 74 return isset($pass[0]['value']) ? $pass[0]['value'] : FALSE;
75 } 75 }
76 76
77 public function updatePassword($password)
78 {
79 $sql_update = "UPDATE config SET value=? WHERE name='password'";
80 $params_update = array($password);
81 $query = $this->executeQuery($sql_update, $params_update);
82 }
83
77 private function executeQuery($sql, $params) { 84 private function executeQuery($sql, $params) {
78 try 85 try
79 { 86 {