Merge pull request #10670 from nextcloud/fix/login-throttle-username-length

Fix max length requirements for the throttler metadata
This commit is contained in:
Morris Jobke 2018-08-24 16:25:35 +02:00 committed by GitHub
commit 6099786c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class LoginController extends Controller {
$response = new RedirectResponse(
$this->urlGenerator->linkToRoute('core.login.showLoginForm', $args)
);
$response->throttle(['user' => $user]);
$response->throttle(['user' => substr($user, 0, 64)]);
$this->session->set('loginMessages', [
[$loginMessage], []
]);