prevent users with the same name but different casing from being created

This commit is contained in:
Robin Appelman 2012-04-14 12:54:33 +02:00
parent 5c55b9c5ac
commit d3bf013761
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class OC_User_Database extends OC_User_Backend {
* @return boolean
*/
public function userExists($uid){
$query = OC_DB::prepare( "SELECT * FROM `*PREFIX*users` WHERE uid = ?" );
$query = OC_DB::prepare( "SELECT * FROM `*PREFIX*users` WHERE uid LIKE ?" );
$result = $query->execute( array( $uid ));
return $result->numRows() > 0;