Create reset-password.html
Browse files
templates/reset-password.html
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Reset Password</title>
|
5 |
+
<!-- Include your CSS and other head elements -->
|
6 |
+
</head>
|
7 |
+
<body>
|
8 |
+
<form id="reset-password-form" action="https://yourapidomain.com/reset-password" method="post">
|
9 |
+
<input type="hidden" id="token" name="token" value="">
|
10 |
+
<label for="new-password">New Password:</label>
|
11 |
+
<input type="password" id="new-password" name="new_password" required><br><br>
|
12 |
+
<button type="submit">Reset Password</button>
|
13 |
+
</form>
|
14 |
+
<script>
|
15 |
+
// Extract the token from the URL
|
16 |
+
const urlParams = new URLSearchParams(window.location.search);
|
17 |
+
const token = urlParams.get('token');
|
18 |
+
document.getElementById('token').value = token;
|
19 |
+
</script>
|
20 |
+
</body>
|
21 |
+
</html>
|