[API] Invalidate session after api call is done

master
ntimo 2019-10-08 19:30:01 +02:00
parent 8a87dd4254
commit af13ae455c
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
1 changed files with 5 additions and 0 deletions

View File

@ -1357,4 +1357,9 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
exit(); exit();
} }
} }
if ($_SESSION['mailcow_cc_api'] === true) {
if (isset($_SESSION['mailcow_cc_api']) && $_SESSION['mailcow_cc_api'] === true) {
unset($_SESSION['return']);
}
}
} }