35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
<!-- reset-password.ejs -->
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Password Reset</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="container mt-5">
|
|
<% if (error) { %>
|
|
<div class="alert alert-danger"><%= error %></div>
|
|
<% } else if (success) { %>
|
|
<div class="alert alert-success"><%= success %></div>
|
|
<p>Password changed successfully. <a href="/login">Click here to log in</a>.</p>
|
|
<% } else { %>
|
|
<h2 class="mb-4">Reset Your Password</h2>
|
|
<form action="/reset-password/<%= token %>" method="post">
|
|
<div class="form-group">
|
|
<label for="password">New Password:</label>
|
|
<input type="password" class="form-control" id="password" name="password" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="confirmPassword">Confirm Password:</label>
|
|
<input type="password" class="form-control" id="confirmPassword" name="confirmPassword" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Reset Password</button>
|
|
</form>
|
|
<% } %>
|
|
</div>
|
|
</body>
|
|
</html>
|