Merge pull request #8910 from nextcloud/fix-login-error
Avoid to leak a user ID that is not a string to reach a user backend
This commit is contained in:
commit
52c0e02bdc
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,8 @@ class LoginController extends Controller {
|
|||
*
|
||||
* @return TemplateResponse|RedirectResponse
|
||||
*/
|
||||
public function showLoginForm($user, $redirect_url) {
|
||||
public function showLoginForm(string $user = null, string $redirect_url = null): Http\Response {
|
||||
|
||||
if ($this->userSession->isLoggedIn()) {
|
||||
return new RedirectResponse(OC_Util::getDefaultPageUrl());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue