2020-08-14 20:27:57 +02:00
|
|
|
<?= helper('form') ?>
|
2022-10-15 13:22:08 +02:00
|
|
|
<?= $this->extend(config('Auth')->views['layout']) ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
|
2022-10-15 13:22:08 +02:00
|
|
|
<?= $this->section('title') ?><?= lang('Auth.login') ?><?= $this->endSection() ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2022-10-15 13:22:08 +02:00
|
|
|
<form actions="<?= url_to('login') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
2021-09-20 17:45:38 +02:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
|
|
|
<Forms.Field
|
2022-10-15 13:22:08 +02:00
|
|
|
name="email"
|
|
|
|
label="<?= lang('Auth.email') ?>"
|
2022-03-10 12:00:17 +01:00
|
|
|
required="true"
|
2022-10-15 13:22:08 +02:00
|
|
|
type="email"
|
|
|
|
inputmode="email"
|
|
|
|
autocomplete="email"
|
|
|
|
autofocus="autofocus"
|
|
|
|
/>
|
2021-09-20 17:45:38 +02:00
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="password"
|
|
|
|
label="<?= lang('Auth.password') ?>"
|
|
|
|
type="password"
|
2022-10-15 13:22:08 +02:00
|
|
|
inputmode="text"
|
|
|
|
autocomplete="current-password"
|
2021-09-20 17:45:38 +02:00
|
|
|
required="true" />
|
|
|
|
|
2022-10-15 13:22:08 +02:00
|
|
|
<!-- Remember me -->
|
|
|
|
<?php if (setting('Auth.sessionConfig')['allowRemembering']): ?>
|
|
|
|
<Forms.Toggler name="remember" value="yes" checked="<?= old('remember') ?>" size="small"><?= lang('Auth.rememberMe') ?></Forms.Toggler>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Auth.login') ?></Button>
|
2021-09-20 17:45:38 +02:00
|
|
|
</form>
|
2020-07-10 14:20:25 +02:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('footer') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-col items-center py-4 text-sm text-center">
|
2022-10-15 13:22:08 +02:00
|
|
|
<?php if (setting('Auth.allowMagicLinkLogins')) : ?>
|
|
|
|
<p class="text-center"><?= lang('Auth.forgotPassword') ?> <a class="underline hover:no-underline" href="<?= url_to('magic-link') ?>"><?= lang('Auth.useMagicLink') ?></a></p>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php if (setting('Auth.allowRegistration')) : ?>
|
|
|
|
<p class="text-center"><?= lang('Auth.needAccount') ?> <a class="underline hover:no-underline" href="<?= url_to('register') ?>"><?= lang('Auth.register') ?></a></p>
|
|
|
|
<?php endif ?>
|
2020-07-10 14:20:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|