lowercase login user
This commit is contained in:
parent
32dcab7592
commit
7ee8e8860e
@ -32,6 +32,7 @@ class SecurityController
|
||||
$password = $_POST['password'] ?? '';
|
||||
|
||||
if ($nick && $password) {
|
||||
$nick = strtolower(string: $nick);
|
||||
if ($user = $this->userRepository->findbyNick(nick: $nick)) {
|
||||
if (password_verify(password: $password, hash: $user->getPassword())) {
|
||||
$_SESSION['user_id'] = $user->getId();
|
||||
|
Loading…
Reference in New Issue
Block a user