In some cases users may need to have a password that is `. *passport-local* fails with the messageMissing credentialsin this case. This error is wrong, as the password property is present onreq.body`
A zero length password can be useful in testing, initial signup on a closed network, etc.
Expected behavior
When the 'username' and 'password' properties are present on req.body the validation function should be called, unless those properties are undefined.
Actual behavior
If req.body.$passwordField is `` the validation function is not called.
Steps to reproduce
Instantiate any app and pass a password of zero-length when logging in.
In some cases users may need to have a password that is
`. *passport-local* fails with the message
Missing credentialsin this case. This error is wrong, as the password property is present on
req.body`A zero length password can be useful in testing, initial signup on a closed network, etc.
Expected behavior
When the 'username' and 'password' properties are present on
req.body
the validation function should be called, unless those properties are undefined.Actual behavior
If
req.body.$passwordField
is `` the validation function is not called.Steps to reproduce
Instantiate any app and pass a password of zero-length when logging in.
Slightly contrived example.
Environment