Skip to content

Commit

Permalink
fixup! c27b26a
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Zimdahl <pablo@nextcloud.com>
  • Loading branch information
pabzm committed Sep 11, 2024
1 parent c27b26a commit 5172020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Controller/ClientFlowLoginV2Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function poll(string $token): JSONResponse {
* @PublicPage
*/
#[UseSession]
public function landing(string $token, $user = ''): Response {
public function landing(string $token, $user = '', int $direct = 0): Response {
if (!$this->loginFlowV2Service->startLoginFlow($token)) {
return $this->loginTokenForbiddenResponse();
}
Expand All @@ -117,7 +117,7 @@ public function landing(string $token, $user = ''): Response {
* @PublicPage
*/
#[UseSession]
public function showAuthPickerPage($user = ''): StandaloneTemplateResponse {
public function showAuthPickerPage(string $user = '', int $direct = 0): StandaloneTemplateResponse {
try {
$flow = $this->getFlowByLoginToken();
} catch (LoginFlowV2NotFoundException $e) {
Expand Down Expand Up @@ -151,7 +151,7 @@ public function showAuthPickerPage($user = ''): StandaloneTemplateResponse {
* @NoSameSiteCookieRequired
*/
#[UseSession]
public function grantPage(?string $stateToken): StandaloneTemplateResponse {
public function grantPage(?string $stateToken, int $direct = 0): StandaloneTemplateResponse {
if ($stateToken === null) {
return $this->stateTokenMissingResponse();
}
Expand Down

0 comments on commit 5172020

Please sign in to comment.