summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Controller/LoginController.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 0f02be4bfda..2235439d956 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -141,10 +141,7 @@ class LoginController extends Controller {
*
* @return TemplateResponse|RedirectResponse
*/
- public function showLoginForm($user, $redirect_url) {
- if (!is_string($user)) {
- throw new \InvalidArgumentException('User needs to be string');
- }
+ public function showLoginForm(string $user = null, string $redirect_url = null): Http\Response {
if ($this->userSession->isLoggedIn()) {
return new RedirectResponse(OC_Util::getDefaultPageUrl());