50 lines
1.8 KiB
PHP
50 lines
1.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Forgot 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">Forgot Password</h2>
|
|
|
|
<?php if (session()->getFlashdata('success')): ?>
|
|
<div class="alert alert-success app-alert">
|
|
<?= 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('forgot-password') ?>" class="app-form" novalidate>
|
|
<?= csrf_field() ?>
|
|
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">Email Address</label>
|
|
<input type="email" name="email" id="email" class="form-control"
|
|
value="<?= esc(old('email')) ?>" required>
|
|
<?php if (session()->has('errors.email')): ?>
|
|
<div class="text-danger small mt-1"><?= session('errors.email') ?></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary w-100">Send Reset Link</button>
|
|
</form>
|
|
|
|
<div class="text-center mt-3">
|
|
<p class="text-muted">
|
|
Remember your password? <a href="<?= base_url('/') ?>">Login here</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|