lowercase login user
This commit is contained in:
parent
7ee8e8860e
commit
bb3d0f6e1b
|
@ -71,6 +71,8 @@ class UserRepository
|
|||
|
||||
public function findByNick(string $nick): ?User
|
||||
{
|
||||
$nick = strtolower(string: $nick);
|
||||
|
||||
$sql = "
|
||||
SELECT id, nick, password, first, last, is_admin
|
||||
FROM " . DatabaseConnection::TABLE_USERS . "
|
||||
|
|
Loading…
Reference in New Issue