Skip to content

Commit 49e05f5

Browse files
committed
[Web] fix oauth2 redirect after login
1 parent 2445399 commit 49e05f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

data/web/inc/triggers.inc.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@
111111
header("Location: /mobileconfig.php");
112112
die();
113113
}
114-
header("Location: /user");
115-
die();
114+
if (!isset($_SESSION['oauth2_request'])) {
115+
header("Location: /user");
116+
die();
117+
}
116118
}
117119
elseif ($as != "pending") {
118120
unset($_SESSION['pending_mailcow_cc_username']);

0 commit comments

Comments
 (0)