30 lines
1.0 KiB
PHP
30 lines
1.0 KiB
PHP
<?= $this->extend('layouts/auth') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
<h1 class="h4 mb-2">Set New Password</h1>
|
|
<p class="text-muted mb-4">Choose a strong password for your account.</p>
|
|
|
|
<?php if (session()->getFlashdata('errors')): ?>
|
|
<div class="alert alert-danger">
|
|
<ul class="mb-0">
|
|
<?php foreach (session()->getFlashdata('errors') as $error): ?>
|
|
<li><?= esc($error) ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<form method="post" action="<?= base_url('reset-password/' . $token) ?>">
|
|
<?= csrf_field() ?>
|
|
<div class="mb-3">
|
|
<label class="form-label">New Password</label>
|
|
<input type="password" name="password" class="form-control" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label">Confirm Password</label>
|
|
<input type="password" name="confirm_password" class="form-control" required>
|
|
</div>
|
|
<button class="btn btn-dark w-100" type="submit">Reset Password</button>
|
|
</form>
|
|
<?= $this->endSection() ?>
|