mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-22 16:51:20 +00:00
33 lines
816 B
PHP
33 lines
816 B
PHP
<?php declare(strict_types=1);
|
|
|
|
use Modules\Auth\Config\Auth;
|
|
|
|
?>
|
|
|
|
<?= helper('form') ?>
|
|
<?= $this->extend(config(Auth::class)->views['layout']) ?>
|
|
|
|
<?= $this->section('title') ?><?= lang('Auth.email2FATitle') ?> <?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= url_to('auth-action-handle') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
|
<?= csrf_field() ?>
|
|
|
|
<Forms.Field
|
|
name="email"
|
|
label="<?= lang('Auth.email') ?>"
|
|
helper="<?= lang('Auth.confirmEmailAddress') ?>"
|
|
required="true"
|
|
type="email"
|
|
inputmode="email"
|
|
autocomplete="email"
|
|
value="<?= $user->email ?>"
|
|
/>
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Auth.send') ?></Button>
|
|
</form>
|
|
|
|
|
|
<?= $this->endSection() ?>
|