Skip to content

Commit

Permalink
configure correct redirect route for gitlab login
Browse files Browse the repository at this point in the history
  • Loading branch information
KSauter committed Jun 21, 2022
1 parent da7ecb2 commit d22367b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/OAuth/GitLabController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function register(): Response
{
$this->ensureOAuthRegistrationIsEnabled();

return $this->oauth->getClient('gitlab')->redirect(['read_user'], []);
return $this->oauth->getClient('gitlab')->redirect(['read_user'], ['redirect_uri' => $this->generateUrl('register_gitlab_check', [], UrlGeneratorInterface::ABSOLUTE_URL)]);
}

/**
Expand Down

0 comments on commit d22367b

Please sign in to comment.