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

v1.18.x
Julian Lam 11 years ago
parent 171f02101d
commit a7736d1926

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

Loading…
Cancel
Save