Browse Source

Also pass user on flow v2 landing

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/29530/head
Julius Härtl 4 years ago
parent
commit
e00173a71b
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      core/Controller/ClientFlowLoginV2Controller.php

4
core/Controller/ClientFlowLoginV2Controller.php

@ -100,7 +100,7 @@ class ClientFlowLoginV2Controller extends Controller {
* @PublicPage
* @UseSession
*/
public function landing(string $token): Response {
public function landing(string $token, $user = ''): Response {
if (!$this->loginFlowV2Service->startLoginFlow($token)) {
return $this->loginTokenForbiddenResponse();
}
@ -108,7 +108,7 @@ class ClientFlowLoginV2Controller extends Controller {
$this->session->set(self::TOKEN_NAME, $token);
return new RedirectResponse(
$this->urlGenerator->linkToRouteAbsolute('core.ClientFlowLoginV2.showAuthPickerPage')
$this->urlGenerator->linkToRouteAbsolute('core.ClientFlowLoginV2.showAuthPickerPage', ['user' => $user])
);
}

Loading…
Cancel
Save