Skip to content

Commit 182f13e

Browse files
revert: remove oauth2.php fix (moved to standalone PR Cacti#6886)
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
1 parent 2794f42 commit 182f13e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

oauth2.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@
9292
if (!isrv('code')) { // If we don't have an authorization code then get one
9393
$authUrl = $provider->getAuthorizationUrl($options);
9494
$_SESSION['oauth2state'] = $provider->getState();
95-
header('Location: ' . $authUrl);
96-
97-
exit;
95+
cacti_redirect($authUrl, false);
9896

9997
// Check given state against previously stored one to mitigate CSRF attack
10098
}

0 commit comments

Comments
 (0)