[Web] App password and API adjustments

This commit is contained in:
FreddleSpl0it committed 2026-10-28 15:29:55 +01:00
1 parent bab03ed88b
commit 44429fa0d0
5 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ if (isset($_GET['query'])) {
switch ($action) {
case "add":
if ($_SESSION['mailcow_cc_api_access'] == 'ro' || isset($_SESSION['pending_mailcow_cc_username'])) {
if ($_SESSION['mailcow_cc_api_access'] == 'ro' || isset($_SESSION['pending_mailcow_cc_username']) || !isset($_SESSION["mailcow_cc_username"])) {
http_response_code(403);
echo json_encode(array(
'type' => 'error',