diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 12:22:40 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 12:36:14 +0200 |
commit | 243d6566ddbf8c1e8b544aa51bec590b8dfea2e2 (patch) | |
tree | ab4ed9174a65d90c002f1ad0ded8a79ab08c4705 | |
parent | 883e3dabb38781a8d61e2f9f15b0745a1c20a10b (diff) | |
download | nextcloud-server-243d6566ddbf8c1e8b544aa51bec590b8dfea2e2.tar.gz nextcloud-server-243d6566ddbf8c1e8b544aa51bec590b8dfea2e2.zip |
fix login when using sqlite
-rw-r--r-- | lib/User/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/User/database.php b/lib/User/database.php index c413b180589..533cadbb95c 100644 --- a/lib/User/database.php +++ b/lib/User/database.php @@ -82,7 +82,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND { * @param string $password The password of the user */ public static function login( $username, $password ){ - $query = OC_DB::prepare( "SELECT `uid` FROM `*PREFIX*users` WHERE `uid` = ? AND `password` = ?" ); + $query = OC_DB::prepare( "SELECT uid FROM *PREFIX*users WHERE uid = ? AND password = ?" ); $result = $query->execute( array( $username, sha1( $password ))); if( $result->numRows() > 0 ){ |