login middleware
This commit is contained in:
parent
b5ea0a69a5
commit
35ca5e7e45
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ const isValidLogin = async (req: Request, res: Response, next: NextFunction) =>
|
|||
error.status = 'fail';
|
||||
return next(error);
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue