MAPG-69 add missing return types in LoginController
This commit is contained in:
1 parent
a8777b897b
commit
1cfbef418e
1 file changed
+3
-3
@@ -43,7 +43,7 @@ class LoginController
|
||||
return new HtmlContent('login/login', $data);
|
||||
}
|
||||
|
||||
public function getGoogleLoginRedirect()
|
||||
public function getGoogleLoginRedirect(): IRedirect
|
||||
{
|
||||
$state = bin2hex(random_bytes(16));
|
||||
|
||||
@@ -72,7 +72,7 @@ class LoginController
|
||||
return new HtmlContent('login/signup', $data);
|
||||
}
|
||||
|
||||
public function getSignupSuccess()
|
||||
public function getSignupSuccess(): IContent
|
||||
{
|
||||
$data = [];
|
||||
return new HtmlContent('login/signup_success', $data);
|
||||
@@ -261,7 +261,7 @@ class LoginController
|
||||
return new JsonContent($data);
|
||||
}
|
||||
|
||||
public function signupWithGoogle()
|
||||
public function signupWithGoogle(): IContent
|
||||
{
|
||||
if ($this->request->user() !== null) {
|
||||
$data = ['success' => true];
|
||||
|
||||
Reference in new issue
Block a user