From b7a80eb5fd515dae92b57cce394a3a618b006171 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 2 Mar 2015 21:58:00 +0000 Subject: [PATCH] Users should get 5 password attempts closes #4987 --- core/server/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/models/user.js b/core/server/models/user.js index 17797ebc88..c264f98143 100644 --- a/core/server/models/user.js +++ b/core/server/models/user.js @@ -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);