|
4 | 4 | showRecoveryInput: {{ $errors->has('recovery_code') ? 'true' : 'false' }}, |
5 | 5 | code: '', |
6 | 6 | recovery_code: '' |
7 | | - }" class="relative w-full h-auto"> |
| 7 | + }" class="relative w-full h-auto" > |
8 | 8 | <div x-show="!showRecoveryInput"> |
9 | 9 | <x-auth-header :title="__('Authentication Code')" :description="__('Enter the authentication code provided by your authenticator application.')" /> |
10 | 10 | </div> |
11 | 11 | <div x-show="showRecoveryInput"> |
12 | 12 | <x-auth-header :title="__('Recovery Code')" :description="__('Please confirm access to your account by entering one of your emergency recovery codes.')" /> |
13 | 13 | </div> |
14 | 14 |
|
15 | | - <form method="POST" action="{{ route('two-factor.login.store') }}"> |
| 15 | + <form method="POST" action="{{ route('two-factor.login.store') }}" x-cloak> |
16 | 16 | @csrf |
17 | 17 |
|
18 | 18 | <div class="space-y-5 text-center"> |
|
25 | 25 | <p class="my-2 text-sm text-red-600">{{ $message }}</p> |
26 | 26 | @enderror |
27 | 27 | </div> |
28 | | - <div x-show="showRecoveryInput" x-cloak> |
| 28 | + <div x-show="showRecoveryInput"> |
29 | 29 | <div class="my-5"> |
30 | 30 | <flux:input type="text" name="recovery_code" x-ref="recovery_code" |
31 | 31 | x-bind:required="showRecoveryInput" autocomplete="one-time-code" |
|
43 | 43 | </div> |
44 | 44 |
|
45 | 45 | <div class="mt-5 space-x-0.5 text-sm leading-5 text-center"> |
46 | | - <span class="opacity-50">or you can </span> |
| 46 | + <span class="opacity-50">{{ __('or you can') }} </span> |
47 | 47 | <div class="font-medium underline opacity-80 cursor-pointer inline"> |
48 | 48 | <span x-show="!showRecoveryInput" |
49 | | - @click="showRecoveryInput = true; code = ''; recovery_code = ''; $dispatch('clear-auth-2fa-auth-code'); $nextTick(() => $refs.recovery_code?.focus())">login |
50 | | - using a recovery code</span> |
| 49 | + @click="showRecoveryInput = true; code = ''; recovery_code = ''; $dispatch('clear-auth-2fa-auth-code'); $nextTick(() => $refs.recovery_code?.focus())">{{ __('login using a recovery code') }}</span> |
51 | 50 | <span x-show="showRecoveryInput" x-cloak |
52 | | - @click="showRecoveryInput = false; code = ''; recovery_code = ''; $dispatch('clear-auth-2fa-auth-code'); $nextTick(() => $dispatch('focus-auth-2fa-auth-code'))">login |
53 | | - using an authentication code</span> |
| 51 | + @click="showRecoveryInput = false; code = ''; recovery_code = ''; $dispatch('clear-auth-2fa-auth-code'); $nextTick(() => $dispatch('focus-auth-2fa-auth-code'))">{{ __('login using an authentication code') }}</span> |
54 | 52 | </div> |
55 | 53 | </div> |
56 | 54 | </form> |
|
0 commit comments