Avoid optional Fortify route imports
linter / quality (pull_request) Successful in 1m22s
tests / ci (8.4) (pull_request) Successful in 1m35s

This commit is contained in:
2026-05-22 23:33:01 +00:00
parent fd0d6ac6d6
commit 94e32497b0
14 changed files with 76 additions and 32 deletions
@@ -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 }"