fix: fix 2fa (#7668)
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user