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

Fix undefined offset in login controller
This commit is contained in:
Björn Schießle 2016-08-10 12:49:58 +02:00 committed by GitHub
commit e8571a2b19
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] : [];