Node.js based forum software built for the modern web
removed setTimeout when someone tries to log in with a non-existant username
Julian Lama7736d192645
diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex 9841f3c69d..9b30ae08a9 100644--- a/src/routes/authentication.js+++ b/src/routes/authentication.js@@ -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) {