Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "darklord", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"author": "Gregory Pratt <gregory.pratt@me.com> (http://grumpywizards.com)", | ||
@@ -5,0 +5,0 @@ "description": "Stateless JWT based authentication", |
@@ -29,3 +29,8 @@ var Cookies = require('cookies'); | ||
if (opts.passwordValidator && !opts.passwordValidator.test(req.body.password)) { | ||
res.status(400).end(); | ||
res.status(400).send({ | ||
error: { | ||
name: 'InvalidPasswordError', | ||
message: 'The password does not meet the configured validation' | ||
} | ||
}); | ||
} else { | ||
@@ -32,0 +37,0 @@ User.register({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21407
477