mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
Merge pull request #4988 from ErisDS/password-attempts
Users should get 5 password attempts
This commit is contained in:
commit
90b355a8d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user