Avoid optional Fortify route imports
This commit is contained in:
@@ -9,8 +9,8 @@ import {
|
||||
InputOTPGroup,
|
||||
InputOTPSlot,
|
||||
} from '@/components/ui/input-otp';
|
||||
import { fortifyRoutes } from '@/lib/fortify';
|
||||
import AuthLayout from '@/layouts/AuthLayout.vue';
|
||||
import { store } from '@/routes/two-factor/login';
|
||||
import type { TwoFactorConfigContent } from '@/types';
|
||||
|
||||
const authConfigContent = computed<TwoFactorConfigContent>(() => {
|
||||
@@ -52,7 +52,8 @@ const code = ref<string>('');
|
||||
<div class="space-y-6">
|
||||
<template v-if="!showRecoveryInput">
|
||||
<Form
|
||||
v-bind="store.form()"
|
||||
:action="fortifyRoutes.twoFactor.challenge"
|
||||
method="post"
|
||||
class="space-y-4"
|
||||
reset-on-error
|
||||
@error="code = ''"
|
||||
@@ -99,7 +100,8 @@ const code = ref<string>('');
|
||||
|
||||
<template v-else>
|
||||
<Form
|
||||
v-bind="store.form()"
|
||||
:action="fortifyRoutes.twoFactor.challenge"
|
||||
method="post"
|
||||
class="space-y-4"
|
||||
reset-on-error
|
||||
#default="{ errors, processing, clearErrors }"
|
||||
|
||||
Reference in New Issue
Block a user