Skip to content

Node.js based forum software built for the modern web

test login after lock

Barış Soner Uşaklı8205d6c8971f
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);