removed setTimeout when someone tries to log in with a non-existant username

This commit is contained in:
Julian Lam
2014-09-02 11:48:28 -04:00
parent 171f02101d
commit a7736d1926

View File

@@ -216,11 +216,8 @@
return next(err);
}
if (!uid) {
setTimeout(function() {
next(null, false, '[[error:invalid-password]]');
}, Math.floor((Math.random() * 1000) + 1500)); // Wait between 1-2.5 seconds before returning
return;
if(!uid) {
return next(null, false, '[[error:no-user]]');
}
user.auth.logAttempt(uid, function(err) {