diff options
Diffstat (limited to 'lib/User/database.php')
-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 d521cc23c42..f0b68cf17d7 100644 --- a/lib/User/database.php +++ b/lib/User/database.php @@ -71,7 +71,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`, `name` 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 ){ |