mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-05 03:09:09 +02:00
test login after lock
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user