public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[API] Invalidate session after api call is done
af13ae45
data/web/json_api.php | 5 +++++
1 file changed, 5 insertions(+)
Diff
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']);
+ }
+ }
}