Skip to content

Commit ac560cd

Browse files
committed
Formatting
1 parent a020197 commit ac560cd

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

resources/js/components/TwoFactorRecoveryCodes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { regenerateRecoveryCodes } from '@/routes/two-factor';
32
import { Button } from '@/components/ui/button';
43
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
54
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
5+
import { regenerateRecoveryCodes } from '@/routes/two-factor';
66
import { Form } from '@inertiajs/vue3';
77
import { Eye, EyeOff, LockKeyhole, RefreshCw } from 'lucide-vue-next';
88
import { nextTick, onMounted, ref } from 'vue';

resources/js/pages/auth/TwoFactorChallenge.vue

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Button } from '@/components/ui/button';
44
import { Input } from '@/components/ui/input';
55
import { PinInput, PinInputGroup, PinInputSlot } from '@/components/ui/pin-input';
66
import AuthLayout from '@/layouts/AuthLayout.vue';
7-
import { Form, Head } from '@inertiajs/vue3';
87
import { store } from '@/routes/two-factor/login';
8+
import { Form, Head } from '@inertiajs/vue3';
99
import { computed, ref } from 'vue';
1010
1111
interface AuthConfigContent {
@@ -48,13 +48,7 @@ const codeValue = computed<string>(() => code.value.join(''));
4848

4949
<div class="space-y-6">
5050
<template v-if="!showRecoveryInput">
51-
<Form
52-
v-bind="store.form()"
53-
class="space-y-4"
54-
reset-on-error
55-
@error="code = []"
56-
#default="{ errors, processing, clearErrors }"
57-
>
51+
<Form v-bind="store.form()" class="space-y-4" reset-on-error @error="code = []" #default="{ errors, processing, clearErrors }">
5852
<input type="hidden" name="code" :value="codeValue" />
5953
<div class="flex flex-col items-center justify-center space-y-3 text-center">
6054
<div class="flex w-full items-center justify-center">
@@ -81,12 +75,7 @@ const codeValue = computed<string>(() => code.value.join(''));
8175
</template>
8276

8377
<template v-else>
84-
<Form
85-
v-bind="store.form()"
86-
class="space-y-4"
87-
reset-on-error
88-
#default="{ errors, processing, clearErrors }"
89-
>
78+
<Form v-bind="store.form()" class="space-y-4" reset-on-error #default="{ errors, processing, clearErrors }">
9079
<Input name="recovery_code" type="text" placeholder="Enter recovery code" :autofocus="showRecoveryInput" required />
9180
<InputError :message="errors.recovery_code" />
9281
<Button type="submit" class="w-full" :disabled="processing">Continue</Button>

resources/js/pages/settings/TwoFactor.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ onUnmounted(() => {
4949
<Badge variant="destructive">Disabled</Badge>
5050

5151
<p class="text-muted-foreground">
52-
When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can
53-
be retrieved from a TOTP-supported application on your phone.
52+
When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from
53+
a TOTP-supported application on your phone.
5454
</p>
5555

5656
<div>
@@ -65,8 +65,8 @@ onUnmounted(() => {
6565
<Badge variant="default">Enabled</Badge>
6666

6767
<p class="text-muted-foreground">
68-
With two-factor authentication enabled, you will be prompted for a secure, random pin during login, which you
69-
can retrieve from the TOTP-supported application on your phone.
68+
With two-factor authentication enabled, you will be prompted for a secure, random pin during login, which you can retrieve
69+
from the TOTP-supported application on your phone.
7070
</p>
7171

7272
<TwoFactorRecoveryCodes />

0 commit comments

Comments
 (0)