mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-12 01:05:47 +00:00

- add AuthSeeder to bootstrap authorization data and remove UserSeeder - create a superadmin group having all authorizations - refactor routes and controller methods to separate get and post requests - refactor admin views with a title section in layout - add contributors section to podcasts to manage contributions (add, edit roles and remove) closes #3, #18
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('MyAccount.changePassword') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= route_to(
|
|
'myAccount_changePassword'
|
|
) ?>" method="post" class="flex flex-col max-w-lg">
|
|
<?= csrf_field() ?>
|
|
|
|
<input type="hidden" name="email" value="<?= user()->email ?>">
|
|
|
|
<label for="password"><?= lang('User.form.password') ?></label>
|
|
<input type="password" name="password" class="mb-4 form-input" id="password" autocomplete="off">
|
|
|
|
<label for="new_password"><?= lang('User.form.new_password') ?></label>
|
|
<input type="password" name="new_password" class="mb-4 form-input" id="new_password" autocomplete="off">
|
|
|
|
<label for="pass_confirm"><?= lang(
|
|
'User.form.repeat_new_password'
|
|
) ?></label>
|
|
<input type="password" name="new_pass_confirm" class="mb-6 form-input" id="new_pass_confirm" autocomplete="off">
|
|
|
|
<button type="submit" class="px-4 py-2 ml-auto border">
|
|
<?= lang('User.form.submit_edit') ?>
|
|
</button>
|
|
</form>
|
|
|
|
<?= $this->endSection()
|
|
?>
|