clusev/resources/views/livewire/auth/two-factor-challenge.blade.php

20 lines
1.2 KiB
PHP

<div>
<h1 class="font-display text-lg font-semibold text-ink">Zwei-Faktor-Bestätigung</h1>
<p class="mt-1 text-sm text-ink-3">Gib den 6-stelligen Code aus deiner Authenticator-App ein.</p>
<form wire:submit="verify" class="mt-5 space-y-4">
<div>
<label for="code" class="mb-1.5 block font-mono text-[11px] uppercase tracking-wider text-ink-3">Code</label>
<input wire:model="code" id="code" inputmode="numeric" autocomplete="one-time-code" autofocus
class="w-full rounded-md border border-line bg-inset px-3 py-2 text-center font-mono text-lg tracking-[0.4em] text-ink placeholder:text-ink-4 focus-visible:border-accent/50"
placeholder="000000" />
@error('code') <p class="mt-1.5 text-xs text-offline">{{ $message }}</p> @enderror
</div>
<button type="submit" wire:loading.attr="disabled" wire:target="verify"
class="flex min-h-11 w-full items-center justify-center rounded-md bg-accent px-4 py-2 font-display text-sm font-semibold uppercase tracking-wide text-void transition-colors hover:bg-accent-bright disabled:opacity-60">
Bestätigen
</button>
</form>
</div>