1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

demo mode (you can't update password in demo mode

This commit is contained in:
Nicolas Lœuillet 2013-06-01 08:29:37 +02:00
parent da368cc84f
commit 6499b26ae8
8 changed files with 15 additions and 4 deletions

View 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
{