Remove always failing error commited accidentally

This commit is contained in:
Maciej Ziarkowski 2019-08-22 10:29:40 +01:00
parent 2622269f77
commit 6d4c514c00

View File

@ -65,7 +65,6 @@ function deleteCurrentUser(req, res) {
}
async function resetPassword(req: express.Request, res: express.Response) {
throw new Error('adsd');
if(req.body == undefined || (req.body.email == undefined && req.body.token == undefined)) {
return res.send({ error: 'Expected an email address or password reset token in the request body' });
}