castopod/app/Views/auth/register.php
Yassine Doghri c63a077618 feat(users): add myth-auth to handle users crud + add admin gateway only accessible by login
- overwrite myth/auth config with castopod app needs
- create custom views for users authentication
- add admin area bootstrapped by admin controller
- shift podcast and episodes crud to admin area
- reorganize view layouts
- update docs for database migration
- add myth-auth to DEPENDENCIES.md

closes #11
2020-10-15 14:41:03 +00:00

55 lines
1.6 KiB
PHP

<?= $this->extend($config->viewLayout) ?>
<?= $this->section('title') ?>
<?= lang('Auth.register') ?>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<form action="<?= route_to('register') ?>" method="post" class="flex flex-col">
<?= csrf_field() ?>
<label for="email"><?= lang('Auth.email') ?></label>
<input type="email" class="mb-4 form-input" name="email" aria-describedby="emailHelp" placeholder="<?= lang(
'Auth.email'
) ?>" value="<?= old('email') ?>">
<small id="emailHelp" class="mb-4">
<?= lang('Auth.weNeverShare') ?>
</small>
<label for="username"><?= lang('Auth.username') ?></label>
<input type="text" class="mb-4 form-input" name="username" placeholder="<?= lang(
'Auth.username'
) ?>" value="<?= old('username') ?>">
<label for="password"><?= lang('Auth.password') ?></label>
<input type="password" name="password" class="mb-4 form-input" placeholder="<?= lang(
'Auth.password'
) ?>" autocomplete="off">
<label for="pass_confirm"><?= lang('Auth.repeatPassword') ?></label>
<input type="password" name="pass_confirm" class="mb-6 form-input" placeholder="<?= lang(
'Auth.repeatPassword'
) ?>" autocomplete="off">
<button type="submit" class="px-4 py-2 ml-auto border">
<?= lang('Auth.register') ?>
</button>
</form>
<?= $this->endSection() ?>
<?= $this->section('footer') ?>
<p class="py-4 text-sm text-center">
<?= lang(
'Auth.alreadyRegistered'
) ?> <a class="underline hover:no-underline" href="<?= route_to(
'login'
) ?>"><?= lang('Auth.signIn') ?></a>
</p>
<?= $this->endSection() ?>