Skip to content

Commit

Permalink
[Web] fix oauth2 redirect after login
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Dec 9, 2024
1 parent 2445399 commit 49e05f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/web/inc/triggers.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@
header("Location: /mobileconfig.php");
die();
}
header("Location: /user");
die();
if (!isset($_SESSION['oauth2_request'])) {
header("Location: /user");
die();
}
}
elseif ($as != "pending") {
unset($_SESSION['pending_mailcow_cc_username']);
Expand Down

0 comments on commit 49e05f5

Please sign in to comment.