From 8205d6c8971f284f57d0a2bb785f29208a060d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 23 May 2017 23:03:40 -0400 Subject: [PATCH] test login after lock --- test/authentication.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/authentication.js b/test/authentication.js index 3da579fcd3..4b8bcc209e 100644 --- a/test/authentication.js +++ b/test/authentication.js @@ -412,6 +412,11 @@ describe('authentication', function () { }, function (res, body, jar, next) { meta.config.loginAttempts = 5; + assert.equal(res.statusCode, 403); + assert.equal(body, '[[error:account-locked]]'); + loginUser('lockme', 'abcdef', next); + }, + function (res, body, jar, next) { assert.equal(res.statusCode, 403); assert.equal(body, '[[error:account-locked]]'); db.exists('lockout:' + uid, next);