Merge pull request #815 from nextcloud/fix-undefined-offset-in-login-controller-stable10

[stable10] Add missing array element
This commit is contained in:
Björn Schießle 2016-08-10 12:50:22 +02:00 committed by GitHub
commit 5d11b5b278
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] : [];