Remove always failing error commited accidentally
This commit is contained in:
parent
2622269f77
commit
6d4c514c00
@ -65,7 +65,6 @@ function deleteCurrentUser(req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function resetPassword(req: express.Request, res: express.Response) {
|
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)) {
|
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' });
|
return res.send({ error: 'Expected an email address or password reset token in the request body' });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user