This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
<?php
|
||||
include "../api/utils/security.php";
|
||||
secure_session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
|
||||
@@ -7,6 +11,7 @@
|
||||
<title>Password Reset</title>
|
||||
<?php
|
||||
include "../assets/components.php";
|
||||
print_csrf_script();
|
||||
?>
|
||||
|
||||
</head>
|
||||
@@ -57,6 +62,9 @@
|
||||
try {
|
||||
const response = await fetch('/api/login/reset_pw.php', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'X-CSRF-Token': window.csrfToken
|
||||
},
|
||||
body: formData
|
||||
});
|
||||
|
||||
@@ -79,4 +87,3 @@
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user