lowercase login user

This commit is contained in:
tracer 2022-10-26 13:14:39 +02:00
parent 7ee8e8860e
commit bb3d0f6e1b
1 changed files with 2 additions and 0 deletions

View File

@ -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 . "