From bb3d0f6e1b14bd8ecab62e19430850561a2cb0d3 Mon Sep 17 00:00:00 2001 From: tracer Date: Wed, 26 Oct 2022 13:14:39 +0200 Subject: [PATCH] lowercase login user --- src/Repository/UserRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Repository/UserRepository.php b/src/Repository/UserRepository.php index de0fcf4..77b4da3 100644 --- a/src/Repository/UserRepository.php +++ b/src/Repository/UserRepository.php @@ -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 . "