Skip to content

Commit

Permalink
feature: append existing query string
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed May 10, 2024
1 parent 7d84053 commit 3fca120
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public function fakeLogin(string $userId, string $redirectTo = "/"):void {
$queryString = http_build_query([
"AUTHWAVE_RESPONSE_DATA" => (string)$cipherText,
]);
if($currentQuery = $this->currentUri->getQuery()) {
$queryString .= "&";
$queryString .= $currentQuery;
}
$uri = new Uri("$redirectTo?$queryString");
$this->redirectHandler->redirect($uri);
}
Expand Down

0 comments on commit 3fca120

Please sign in to comment.