[Web] fix oauth2 redirect after login
This commit is contained in:
@@ -111,8 +111,10 @@ if (isset($_POST["login_user"]) && isset($_POST["pass_user"])) {
|
|||||||
header("Location: /mobileconfig.php");
|
header("Location: /mobileconfig.php");
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
header("Location: /user");
|
if (!isset($_SESSION['oauth2_request'])) {
|
||||||
die();
|
header("Location: /user");
|
||||||
|
die();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elseif ($as != "pending") {
|
elseif ($as != "pending") {
|
||||||
unset($_SESSION['pending_mailcow_cc_username']);
|
unset($_SESSION['pending_mailcow_cc_username']);
|
||||||
|
|||||||
Reference in New Issue
Block a user