mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
removed setTimeout when someone tries to log in with a non-existant username
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user