force to lower on login and sign up

This commit is contained in:
Varakh 2017-05-04 13:38:36 +02:00
parent 8b9cde8f73
commit 121f4c4449
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ final class LoginAction
return $response->withRedirect('/login');
}
$username = $body['username'];
$username = trim(strtolower($body['username']));
$password = $body['password'];
$result = $this->auth->authenticate($username, $password);

View file

@ -49,7 +49,7 @@ final class SignUpAction
}
$username = $body['username'];
$email = $body['email'];
$email = trim(strtolower($body['email']));
$password = $body['password'];
// waiting queue