fix: add missing exit statements in integration callback and OAuth files

This commit is contained in:
2026-09-08 14:33:02 +02:00
parent ce0dc64e76
commit bf83949396
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -111,3 +111,4 @@ try {
http_response_code(500); http_response_code(500);
echo json_encode(['error' => $e->getMessage()]); echo json_encode(['error' => $e->getMessage()]);
} }
+1
View File
@@ -95,3 +95,4 @@ $saveStmt->execute([$user['id'], $accessToken, $refreshToken, json_encode($newSe
// 8. Succesvol terugkeren naar de Integraties Hub // 8. Succesvol terugkeren naar de Integraties Hub
header('Location: /integrations.php?success=' . urlencode("Microsoft Outlook succesvol gekoppeld als {$accountEmail}!")); header('Location: /integrations.php?success=' . urlencode("Microsoft Outlook succesvol gekoppeld als {$accountEmail}!"));
exit; exit;
+1
View File
@@ -40,3 +40,4 @@ $_SESSION['ms_oauth_user_id'] = $user['id'];
$authUrl = microsoft_get_auth_url($clientId, $redirectUri, $tenantId, $state); $authUrl = microsoft_get_auth_url($clientId, $redirectUri, $tenantId, $state);
header("Location: {$authUrl}"); header("Location: {$authUrl}");
exit; exit;
+1
View File
@@ -156,3 +156,4 @@ if (!function_exists('fociz_http_request')) {
]; ];
} }
} }
+1
View File
@@ -308,3 +308,4 @@ function jira_disconnect(int $userId): bool {
unset($_SESSION["jira_issues_user_{$userId}"]); unset($_SESSION["jira_issues_user_{$userId}"]);
return $stmt->execute([$userId]); return $stmt->execute([$userId]);
} }
+1
View File
@@ -257,3 +257,4 @@ function microsoft_disconnect(int $userId): bool {
$stmt = $db->prepare("DELETE FROM integrations WHERE user_id = ? AND provider = 'OUTLOOK'"); $stmt = $db->prepare("DELETE FROM integrations WHERE user_id = ? AND provider = 'OUTLOOK'");
return $stmt->execute([$userId]); return $stmt->execute([$userId]);
} }