fix login when using sqlite

This commit is contained in:
Robin Appelman 2011-04-17 12:22:40 +02:00
parent 883e3dabb3
commit 243d6566dd
1 changed files with 1 additions and 1 deletions

View File

@ -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 ){