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

Loading…
Cancel
Save