Trim the login name
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
56528c6ab1
commit
2dd531fc5f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue