2020-08-14 18:27:57 +00:00
|
|
|
<?= helper('form') ?>
|
2024-04-28 16:39:01 +00:00
|
|
|
<?= $this->extend(config('Auth')->views['layout']) ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
2024-12-17 15:06:08 +00:00
|
|
|
<?= $this->section('pageTitle') ?><?= lang('Auth.login') ?><?= $this->endSection() ?>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2022-10-15 11:22:08 +00:00
|
|
|
<form actions="<?= url_to('login') ?>" method="POST" class="flex flex-col w-full gap-y-4">
|
2021-09-20 15:45:38 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2022-10-15 11:22:08 +00:00
|
|
|
name="email"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Auth.email')) ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2022-10-15 11:22:08 +00:00
|
|
|
type="email"
|
|
|
|
inputmode="email"
|
2023-10-03 16:21:08 +00:00
|
|
|
autocomplete="username"
|
2022-10-15 11:22:08 +00:00
|
|
|
autofocus="autofocus"
|
|
|
|
/>
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="password"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Auth.password')) ?>"
|
2021-09-20 15:45:38 +00:00
|
|
|
type="password"
|
2022-10-15 11:22:08 +00:00
|
|
|
inputmode="text"
|
|
|
|
autocomplete="current-password"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2022-10-15 11:22:08 +00:00
|
|
|
<!-- Remember me -->
|
|
|
|
<?php if (setting('Auth.sessionConfig')['allowRemembering']): ?>
|
2024-05-10 09:06:10 +00:00
|
|
|
<x-Forms.Checkbox name="remember" isChecked="<?= old('remember') ?>" size="small"><?= lang('Auth.rememberMe') ?></x-Forms.Checkbox>
|
2022-10-15 11:22:08 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Auth.login') ?></x-Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
</form>
|
2020-07-10 12:20:25 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('footer') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-col items-center py-4 text-sm text-center">
|
2022-10-15 11:22:08 +00: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 12:20:25 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|