[stable9.1] Add missing array element - fixes #25714

This commit is contained in:
Thomas Müller 2016-08-08 08:08:29 +02:00 committed by Bjoern Schiessle
parent 0475315dd4
commit 67534dfba0
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class LoginController extends Controller {
$this->throttler->sleepDelay($this->request->getRemoteAddress());
}
$this->session->set('loginMessages', [
['invalidpassword']
['invalidpassword'], []
]);
// Read current user and append if possible - we need to return the unmodified user otherwise we will leak the login name
$args = !is_null($user) ? ['user' => $originalUser] : [];