From af13ae455cdc62a6f64e9a493768f7a81e8885c6 Mon Sep 17 00:00:00 2001 From: ntimo Date: Tue, 8 Oct 2019 19:30:01 +0200 Subject: [PATCH] [API] Invalidate session after api call is done --- data/web/json_api.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/web/json_api.php b/data/web/json_api.php index 4c490c0d..d59cfe56 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -1357,4 +1357,9 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u exit(); } } + if ($_SESSION['mailcow_cc_api'] === true) { + if (isset($_SESSION['mailcow_cc_api']) && $_SESSION['mailcow_cc_api'] === true) { + unset($_SESSION['return']); + } + } }