aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/Views/auth/reset-password.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/Views/auth/reset-password.php')
-rw-r--r--src/app/Views/auth/reset-password.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/Views/auth/reset-password.php b/src/app/Views/auth/reset-password.php
new file mode 100644
index 0000000..dfdcab2
--- /dev/null
+++ b/src/app/Views/auth/reset-password.php
@@ -0,0 +1,17 @@
+<?php // Reset password form: set a new password using a valid reset token.?>
+<div class="auth-page">
+ <h1>Reset password</h1>
+ <?php include __DIR__ . '/../partials/flash.php'; ?>
+ <form method="POST" action="/reset-password" class="auth-form">
+ <?= \App\Csrf::field() ?>
+ <input type="hidden" name="token" value="<?= htmlspecialchars($_GET['token'] ?? '') ?>">
+
+ <label for="password">New password</label>
+ <input type="password" id="password" name="password" required minlength="8">
+
+ <label for="password_confirm">Confirm new password</label>
+ <input type="password" id="password_confirm" name="password_confirm" required minlength="8">
+
+ <button type="submit">Reset password</button>
+ </form>
+</div>