]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/store/sqlite.class.php
demo mode (you can't update password in demo mode
[github/wallabag/wallabag.git] / inc / store / sqlite.class.php
index 4bfbb29e83632d26f353647574a313dc2809cd94..210816084e1e0042e381b5bd6783fdcea8db2126 100644 (file)
@@ -74,6 +74,13 @@ class Sqlite extends Store {
         return isset($pass[0]['value']) ? $pass[0]['value'] : FALSE; 
     }
 
+    public function updatePassword($password)
+    {
+        $sql_update     = "UPDATE config SET value=? WHERE name='password'";
+        $params_update  = array($password);
+        $query          = $this->executeQuery($sql_update, $params_update);
+    }
+
     private function executeQuery($sql, $params) {
         try
         {