i did search for simular problems but have not find infos, i can show you my code it is very simple and i wonder where the problem comes from:
app.post('/resetpassword', async (req, res) =>
{
//---
let username = req.body.username;
//---
Moralis.User.requestPasswordReset(username)
.then(() => {
// Password reset request was sent successfully
console.log("Password reset request was sent successfully");
}).catch((error) => {
// Show the error message somewhere
console.log("Error: " + error.code + " " + error.message);
});
});
that above is my node.js code, the username is a email adress, i have take the code for sending password reset from Morails documentation, i am wondering now if the function want to have more parameters, if yes it would be written in the documentation, so maybe its something other. I have also create a API Key for Sendgrid and i have save that API Key in my Moralis profile.
If you have a idea let me know, thanks.