test login after lock

This commit is contained in:
Barış Soner Uşaklı
2017-05-23 23:03:40 -04:00
parent 2bddd57a2e
commit 8205d6c897

View File

@@ -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);