You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
These lines wont do anything:
export const postLogin = (req: Request, res: Response, next: NextFunction) => { check("email", "Email is not valid").isEmail() check("password", "Password cannot be blank").isLength({min: 1})
the checks() are middleware, they need to be in the middleware chain, not in the middle of a function
The text was updated successfully, but these errors were encountered: