Skip to content

Commit

Permalink
Merge pull request #199 from hpcc-systems/forgot-password
Browse files Browse the repository at this point in the history
Fixed error Cannot set headers after they are sent to the client
  • Loading branch information
ydahal1 authored May 7, 2021
2 parents 2445e24 + d59cfc3 commit a81872a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/user/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ router.post('/forgot-password', [
res.status(response.statusCode).json(response.message);
})
.catch((err) => {
res.status(500).json({ errors: [err.error] });
// res.status(500).json({ errors: [err.error] });
console.log(err);
})
})

Expand Down

0 comments on commit a81872a

Please sign in to comment.