mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
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:
parent
c47bc92406
commit
0ce2958ee7
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
4
index.js
4
index.js
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue