fix: add missing exit statements in integration callback and OAuth files
This commit is contained in:
@@ -111,3 +111,4 @@ try {
|
||||
http_response_code(500);
|
||||
echo json_encode(['error' => $e->getMessage()]);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,3 +95,4 @@ $saveStmt->execute([$user['id'], $accessToken, $refreshToken, json_encode($newSe
|
||||
// 8. Succesvol terugkeren naar de Integraties Hub
|
||||
header('Location: /integrations.php?success=' . urlencode("Microsoft Outlook succesvol gekoppeld als {$accountEmail}!"));
|
||||
exit;
|
||||
|
||||
|
||||
@@ -40,3 +40,4 @@ $_SESSION['ms_oauth_user_id'] = $user['id'];
|
||||
$authUrl = microsoft_get_auth_url($clientId, $redirectUri, $tenantId, $state);
|
||||
header("Location: {$authUrl}");
|
||||
exit;
|
||||
|
||||
|
||||
@@ -156,3 +156,4 @@ if (!function_exists('fociz_http_request')) {
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -308,3 +308,4 @@ function jira_disconnect(int $userId): bool {
|
||||
unset($_SESSION["jira_issues_user_{$userId}"]);
|
||||
return $stmt->execute([$userId]);
|
||||
}
|
||||
|
||||
|
||||
@@ -257,3 +257,4 @@ function microsoft_disconnect(int $userId): bool {
|
||||
$stmt = $db->prepare("DELETE FROM integrations WHERE user_id = ? AND provider = 'OUTLOOK'");
|
||||
return $stmt->execute([$userId]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user