ctavan/express-validator — Issue #3: Doesn't Seem To Differentiate Post vs Get vs URL
Author: datarem
Created: 2011-12-07 01:52:54+00:00
State: open

If I pass post and get parameters to an app.post and try and assert values it uses the get parameters.

curl -d 'password=1234567' http://localhost:3000/backend/check/?password=fjf
Password can't be shorter than 6 characters and it throws an exception.

Maybe use a similar syntax to req.param('password', req.body) with req.assert('password)?