pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/microsoft/TypeScript-Node-Starter/issues/251

ode_modules_github_selector-observer_dist_index_esm_js-f690fd9ae3d5.js"> express validator isn't doing anything · Issue #251 · microsoft/TypeScript-Node-Starter · GitHub
Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

express validator isn't doing anything #251

Open
CameronSima opened this issue Nov 17, 2019 · 0 comments
Open

express validator isn't doing anything #251

CameronSima opened this issue Nov 17, 2019 · 0 comments

Comments

@CameronSima
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy