Trim the login name

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2019-12-02 09:37:51 +01:00
parent 56528c6ab1
commit 2dd531fc5f
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ class LoginController extends Controller {
if(!is_string($user)) {
throw new \InvalidArgumentException('Username must be string');
}
$user = trim($user);
// If the user is already logged in and the CSRF check does not pass then
// simply redirect the user to the correct page as required. This is the