e6f38d9481
* docs: remove requirement for setting APP_KEY manually * optimize date picker * clean up modals * spot light working * reorganization * add lazy load * wip * remove filament * styling
61 lines
2.8 KiB
PHP
61 lines
2.8 KiB
PHP
<x-layouts.guest>
|
|
<x-ui.authentication-card>
|
|
<x-slot name="logo">
|
|
<div class="w-24 mb-10">
|
|
<x-ui.logo />
|
|
</div>
|
|
</x-slot>
|
|
|
|
<div x-data="{ recovery: false }">
|
|
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400" x-show="! recovery">
|
|
{{ __('Please confirm access to your account by entering the authentication code provided by your authenticator application.') }}
|
|
</div>
|
|
|
|
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400" x-cloak x-show="recovery">
|
|
{{ __('Please confirm access to your account by entering one of your emergency recovery codes.') }}
|
|
</div>
|
|
|
|
<x-ui.errors class="mb-4" />
|
|
|
|
<form method="POST" action="{{ route('two-factor.login') }}">
|
|
@csrf
|
|
|
|
<div class="mt-4" x-show="! recovery">
|
|
|
|
<x-ui.input id="code" label="{{ __('Code') }}" class="block mt-1 w-full" type="text" inputmode="numeric" name="code" autofocus x-ref="code" autocomplete="one-time-code" />
|
|
</div>
|
|
|
|
<div class="mt-4" x-cloak x-show="recovery">
|
|
|
|
<x-ui.input id="recovery_code" label="{{ __('Recovery Code') }}" class="block mt-1 w-full" type="text" name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
|
|
</div>
|
|
|
|
<div class="flex items-center justify-end mt-4">
|
|
<button type="button" class="text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 underline cursor-pointer"
|
|
x-show="! recovery"
|
|
x-on:click="
|
|
recovery = true;
|
|
$nextTick(() => { $refs.recovery_code.focus() })
|
|
">
|
|
{{ __('Use a recovery code') }}
|
|
</button>
|
|
|
|
<button type="button" class="text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 underline cursor-pointer"
|
|
x-cloak
|
|
x-show="recovery"
|
|
x-on:click="
|
|
recovery = false;
|
|
$nextTick(() => { $refs.code.focus() })
|
|
">
|
|
{{ __('Use an authentication code') }}
|
|
</button>
|
|
|
|
<x-ui.button type="submit" class="btn-primary ms-4">
|
|
{{ __('Log in') }}
|
|
</x-ui.button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</x-ui.authentication-card>
|
|
</x-layouts.guest>
|