fix: fix 2fa (#7668)

This commit is contained in:
Alexis Saettler
2025-04-21 11:43:38 +02:00
committed by GitHub
parent 77cbf84905
commit 12947aeaf9
3 changed files with 2 additions and 7 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
{
"sonarCloudOrganization": "monicahq",
"projectKey": "monica"
"projectKey": "monica",
"region": "EU"
}
@@ -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(),
@@ -41,9 +41,6 @@ const enableTwoFactorAuthentication = () => {
route('two-factor.enable'),
{},
{
headers: {
accept: 'application/json',
},
preserveScroll: true,
onSuccess: () => Promise.all([showQrCode(), showSetupKey(), showRecoveryCodes()]),
onFinish: () => {