From f8236ce7a026e4552c1c6b63ac78351324f779b6 Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Sat, 9 Jan 2021 23:32:41 +0100 Subject: [PATCH] Make username case insensitive --- src/UserManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UserManager.php b/src/UserManager.php index d45738d..9251508 100644 --- a/src/UserManager.php +++ b/src/UserManager.php @@ -260,7 +260,7 @@ protected function getUserDataByUsername($username, array $requestedColumns) { $projection = \implode(', ', $requestedColumns); $users = $this->db->select( - 'SELECT ' . $projection . ' FROM ' . $this->makeTableName('users') . ' WHERE username = ? LIMIT 2 OFFSET 0', + 'SELECT ' . $projection . ' FROM ' . $this->makeTableName('users') . ' WHERE username = ? COLLATE NOCASE LIMIT 2 OFFSET 0', [ $username ] ); }