force to lower on login and sign up
This commit is contained in:
parent
8b9cde8f73
commit
121f4c4449
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ final class LoginAction
|
||||||
return $response->withRedirect('/login');
|
return $response->withRedirect('/login');
|
||||||
}
|
}
|
||||||
|
|
||||||
$username = $body['username'];
|
$username = trim(strtolower($body['username']));
|
||||||
$password = $body['password'];
|
$password = $body['password'];
|
||||||
|
|
||||||
$result = $this->auth->authenticate($username, $password);
|
$result = $this->auth->authenticate($username, $password);
|
||||||
|
|
|
@ -49,7 +49,7 @@ final class SignUpAction
|
||||||
}
|
}
|
||||||
|
|
||||||
$username = $body['username'];
|
$username = $body['username'];
|
||||||
$email = $body['email'];
|
$email = trim(strtolower($body['email']));
|
||||||
$password = $body['password'];
|
$password = $body['password'];
|
||||||
|
|
||||||
// waiting queue
|
// waiting queue
|
||||||
|
|
Reference in a new issue