aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Database.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-03 11:56:01 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-03 11:56:01 +0100
commitf85bfdf186c525056e7c30e6b072b1bea9ba80c9 (patch)
tree1c49680b4256f87889af267cb2d761ae71e8971b /inc/poche/Database.class.php
parentcae70cdbdb518b6effe212528c894a390256cf2d (diff)
parent6af66b1106e67a8dc467a70e8e57d7963b09936b (diff)
downloadwallabag-f85bfdf186c525056e7c30e6b072b1bea9ba80c9.tar.gz
wallabag-f85bfdf186c525056e7c30e6b072b1bea9ba80c9.tar.zst
wallabag-f85bfdf186c525056e7c30e6b072b1bea9ba80c9.zip
Merge branch 'dev' of git://github.com/mariroz/wallabag into mariroz-dev
Diffstat (limited to 'inc/poche/Database.class.php')
-rw-r--r--inc/poche/Database.class.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index 3b0f455e..0457af69 100644
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -165,9 +165,14 @@ class Database {
165 } 165 }
166 } 166 }
167 167
168 public function login($username, $password) { 168 public function login($username, $password, $isauthenticated=false) {
169 $sql = "SELECT * FROM users WHERE username=? AND password=?"; 169 if ($isauthenticated) {
170 $query = $this->executeQuery($sql, array($username, $password)); 170 $sql = "SELECT * FROM users WHERE username=?";
171 $query = $this->executeQuery($sql, array($username));
172 } else {
173 $sql = "SELECT * FROM users WHERE username=? AND password=?";
174 $query = $this->executeQuery($sql, array($username, $password));
175 }
171 $login = $query->fetchAll(); 176 $login = $query->fetchAll();
172 177
173 $user = array(); 178 $user = array();