Skip to content

Commit 3fca120

Browse files
author
Greg Bowler
committed
feature: append existing query string
1 parent 7d84053 commit 3fca120

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Authenticator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public function fakeLogin(string $userId, string $redirectTo = "/"):void {
127127
$queryString = http_build_query([
128128
"AUTHWAVE_RESPONSE_DATA" => (string)$cipherText,
129129
]);
130+
if($currentQuery = $this->currentUri->getQuery()) {
131+
$queryString .= "&";
132+
$queryString .= $currentQuery;
133+
}
130134
$uri = new Uri("$redirectTo?$queryString");
131135
$this->redirectHandler->redirect($uri);
132136
}

0 commit comments

Comments
 (0)