Updating password length validation

- setting it back to 7 chars so that people who have 7 char passwords, which were valid, can login.
This commit is contained in:
Hannah Wolfe 2013-08-20 10:43:11 +01:00
parent c47bc92406
commit 0ce2958ee7
2 changed files with 4 additions and 4 deletions

View File

@ -214,8 +214,8 @@
return;
}
if (newPassword.length < 8) {
this.saveError('The password is not long enough. Have at least 8 characters');
if (newPassword.length < 7) {
this.saveError('The password is not long enough. Have at least 7 characters');
return;
}

View File

@ -92,8 +92,8 @@ function signupValidate(req, res, next) {
res.json(401, {error: "Please check your email address. It does not seem to be valid."});
return;
}
if (!v.check(password).len(8)) {
res.json(401, {error: 'Your password is not long enough. It must be at least 8 chars long.'});
if (!v.check(password).len(7)) {
res.json(401, {error: 'Your password is not long enough. It must be at least 7 chars long.'});
return;
}
next();