2023-08-27 13:26:06 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
?>
|
2022-10-15 11:22:08 +00:00
|
|
|
<?= helper('form') ?>
|
2024-04-28 16:39:01 +00:00
|
|
|
<?= $this->extend(config('Auth')->views['layout']) ?>
|
2022-10-15 11:22:08 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?><?= lang('Auth.useMagicLink') ?> <?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<form actions="<?= url_to('magic-link') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="email"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Auth.email')) ?>"
|
2022-10-15 11:22:08 +00:00
|
|
|
required="true"
|
|
|
|
inputmode="email"
|
|
|
|
autocomplete="email"
|
|
|
|
autofocus="autofocus"
|
|
|
|
value="<?= old('email', auth()->user()->email ?? null) ?>"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Auth.send') ?></Button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|