From 12947aeaf90dffe530e6467f9a0aae3dcee69074 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Mon, 21 Apr 2025 11:43:38 +0200 Subject: [PATCH] fix: fix 2fa (#7668) --- .sonarlint/connectedMode.json | 3 ++- app/Http/Middleware/HandleInertiaRequests.php | 3 --- .../js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.sonarlint/connectedMode.json b/.sonarlint/connectedMode.json index 5c0d0cd1b..4f0aae16a 100644 --- a/.sonarlint/connectedMode.json +++ b/.sonarlint/connectedMode.json @@ -1,4 +1,5 @@ { "sonarCloudOrganization": "monicahq", - "projectKey": "monica" + "projectKey": "monica", + "region": "EU" } diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index be6b13473..d7c941598 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -28,9 +28,6 @@ class HandleInertiaRequests extends Middleware 'help_links' => fn () => config('monica.help_links'), 'help_url' => fn () => config('monica.help_center_url'), 'footer' => fn () => $this->footer(), - 'auth' => fn () => [ - 'user' => auth()->user(), - ], 'ziggy' => fn () => [ ...(new Ziggy)->toArray(), 'location' => $request->url(), diff --git a/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue b/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue index 433c3bce9..b98d318c7 100644 --- a/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue +++ b/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue @@ -41,9 +41,6 @@ const enableTwoFactorAuthentication = () => { route('two-factor.enable'), {}, { - headers: { - accept: 'application/json', - }, preserveScroll: true, onSuccess: () => Promise.all([showQrCode(), showSetupKey(), showRecoveryCodes()]), onFinish: () => {