49 lines
1.9 KiB
PHP
49 lines
1.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Reset Password</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="<?= base_url('css/app.css') ?>">
|
|
</head>
|
|
<body class="app-body app-page--auth">
|
|
|
|
<div class="card auth-card shadow">
|
|
<div class="card-body">
|
|
<h2 class="text-center mb-4 auth-title">Reset Password</h2>
|
|
|
|
<?php if (session()->getFlashdata('success')): ?>
|
|
<div class="alert alert-success app-alert"><?= esc(session()->getFlashdata('success')) ?></div>
|
|
<?php endif; ?>
|
|
<?php if (session()->getFlashdata('error')): ?>
|
|
<div class="alert alert-danger app-alert"><?= esc(session()->getFlashdata('error')) ?></div>
|
|
<?php endif; ?>
|
|
|
|
<form method="post" action="<?= base_url('reset-password') ?>" class="app-form" novalidate>
|
|
<?= csrf_field() ?>
|
|
|
|
<input type="hidden" name="token" value="<?= esc($token) ?>">
|
|
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">New Password</label>
|
|
<input type="password" name="password" id="password" class="form-control"
|
|
placeholder="Enter new password (min 8 characters)" required>
|
|
<?php if (session()->has('errors.password')): ?>
|
|
<div class="text-danger small mt-1"><?= session('errors.password') ?></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary w-100">Reset Password</button>
|
|
</form>
|
|
|
|
<div class="text-center mt-3">
|
|
<p class="text-muted">
|
|
<a href="<?= base_url('/') ?>">Back to Login</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|