0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

Merge pull request #4988 from ErisDS/password-attempts

Users should get 5 password attempts
This commit is contained in:
Matt Enlow 2015-03-03 14:10:35 -07:00
commit 90b355a8d8

View file

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