fix login when using sqlite
This commit is contained in:
parent
883e3dabb3
commit
243d6566dd
|
@ -82,7 +82,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND {
|
||||||
* @param string $password The password of the user
|
* @param string $password The password of the user
|
||||||
*/
|
*/
|
||||||
public static function login( $username, $password ){
|
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 )));
|
$result = $query->execute( array( $username, sha1( $password )));
|
||||||
|
|
||||||
if( $result->numRows() > 0 ){
|
if( $result->numRows() > 0 ){
|
||||||
|
|
Loading…
Reference in New Issue