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