0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Users should get 5 password attempts

closes #4987
This commit is contained in:
Hannah Wolfe 2015-03-02 21:58:00 +00:00
parent 8432215cd9
commit b7a80eb5fd

View file

@ -615,7 +615,7 @@ User = ghostBookshelf.Model.extend({
level = 1;
} else {
level = parseInt(status.match(regexp)[1], 10) + 1;
if (level > 3) {
if (level > 4) {
user.set('status', 'locked');
} else {
user.set('status', 'warn-' + level);