# POST
https://www.codegrepper.com/api/reset_password.php
const DataToSend = new FormData();
DataToSend.append("email", "[email protected]");
return fetch(`https://www.codegrepper.com/api/reset_password.php`, {
method: "POST",
body: DataToSend,
})
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
})
.catch((err) => {
console.log(err);
});
{
"success": true,
"errors": []
}
Param |
Type |
Required |
Description |
email |
String |
YES |
Email to receive the password reset email. |