Dev #9

Merged
NiekRabelink merged 2 commits from dev into main 2026-09-08 17:43:42 +00:00
Showing only changes of commit 97da502a8e - Show all commits
+7 -1
View File
@@ -59,7 +59,13 @@ if (!$stateUserId && (empty($receivedState) || empty($expectedState) || !hash_eq
exit; exit;
} }
// 3. Autorisatiecode controleren // Afhandeling van beheerderstoestemming (Admin Consent)
if (!empty($_GET['admin_consent'])) {
header('Location: /integrations.php?success=' . urlencode('Beheerdersgoedkeuring voor uw organisatie is succesvol verleend! Klik nu op "Koppel Outlook" om uw agenda te synchroniseren.'));
exit;
}
// 5. Autorisatiecode controleren
$code = $_GET['code'] ?? ''; $code = $_GET['code'] ?? '';
if (empty($code)) { if (empty($code)) {
header('Location: /integrations.php?error=' . urlencode('Geen autorisatiecode ontvangen van Microsoft.')); header('Location: /integrations.php?error=' . urlencode('Geen autorisatiecode ontvangen van Microsoft.'));