Merge pull request #10670 from nextcloud/fix/login-throttle-username-length
Fix max length requirements for the throttler metadata
This commit is contained in:
commit
6099786c8d
|
@ -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], []
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue