login middleware

This commit is contained in:
Kfir Dayan 2023-06-24 19:46:19 +03:00
parent b5ea0a69a5
commit 35ca5e7e45

View file

@ -11,6 +11,7 @@ const isValidLogin = async (req: Request, res: Response, next: NextFunction) =>
error.status = 'fail'; error.status = 'fail';
return next(error); return next(error);
} }
next(); next();
} }