Loginauth / templates /reset-password.html
Gregniuki's picture
Create reset-password.html
70ba681
raw
history blame
762 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Reset Password</title>
<!-- Include your CSS and other head elements -->
</head>
<body>
<form id="reset-password-form" action="https://yourapidomain.com/reset-password" method="post">
<input type="hidden" id="token" name="token" value="">
<label for="new-password">New Password:</label>
<input type="password" id="new-password" name="new_password" required><br><br>
<button type="submit">Reset Password</button>
</form>
<script>
// Extract the token from the URL
const urlParams = new URLSearchParams(window.location.search);
const token = urlParams.get('token');
document.getElementById('token').value = token;
</script>
</body>
</html>