Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Express Validator Not Validating #231

Closed
amilner42 opened this issue Oct 1, 2019 · 0 comments
Closed

Express Validator Not Validating #231

amilner42 opened this issue Oct 1, 2019 · 0 comments

Comments

@amilner42
Copy link

amilner42 commented Oct 1, 2019

I believe that express-validator was upgraded (as requested in #87) but the source code was not updated to match. As a result, no validation is being performed.

Easiest way to verify is to get a fresh repo - git clone, npm install, npm run build, npm start - and head to the sign up page. Sign up by giving passwords that are not identical, or passwords that are 1 character long, etc. No validation is performed.

I'm new to express-validator but as far as I can tell, in the docs it specifies that you're supposed to use it as middleware now. If that's the case, should be an easy fix.

EDIT: Just checked, it does indeed work when shifted to middleware.

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