1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

[Web] fix oauth2 redirect after login

This commit is contained in:
FreddleSpl0it 2024-12-09 11:36:05 +01:00
parent 24453993f3
commit 49e05f5120
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -111,8 +111,10 @@ if (isset($_POST["login_user"]) && isset($_POST["pass_user"])) {
header("Location: /mobileconfig.php"); header("Location: /mobileconfig.php");
die(); die();
} }
if (!isset($_SESSION['oauth2_request'])) {
header("Location: /user"); header("Location: /user");
die(); die();
}
} }
elseif ($as != "pending") { elseif ($as != "pending") {
unset($_SESSION['pending_mailcow_cc_username']); unset($_SESSION['pending_mailcow_cc_username']);