test login after lock

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 2bddd57a2e
commit 8205d6c897

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

Loading…
Cancel
Save