Merge pull request #814 from nextcloud/fix-undefined-offset-in-login-controller
Fix undefined offset in login controller
This commit is contained in:
commit
e8571a2b19
|
@ -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] : [];
|
||||
|
|
Loading…
Reference in New Issue