From 6499b26ae8e148fa5481db5b7a4e9fc0e55aad94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 1 Jun 2013 08:29:37 +0200 Subject: demo mode (you can't update password in demo mode --- inc/store/sqlite.class.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inc/store') 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 { 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 { -- cgit v1.2.3