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
@@ -12,7 +12,7 @@ import {
CardTitle,
} from '@/components/ui/card';
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
import { regenerateRecoveryCodes } from '@/routes/two-factor';
import { fortifyRoutes } from '@/lib/fortify';
const { recoveryCodesList, fetchRecoveryCodes, errors } = useTwoFactorAuth();
const isRecoveryCodesVisible = ref<boolean>(false);
@@ -64,7 +64,7 @@ onMounted(async () => {
<Form
v-if="isRecoveryCodesVisible && recoveryCodesList.length"
v-bind="regenerateRecoveryCodes.form()"
:action="fortifyRoutes.twoFactor.recoveryCodes"
method="post"
:options="{ preserveScroll: true }"
@success="fetchRecoveryCodes"