From 18462c419040e16057e24c0627300baa9537e51b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 27 Oct 2014 00:59:52 -0400 Subject: [PATCH] derp --- src/routes/authentication.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 21d3d61194..c4b70ee712 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -225,8 +225,7 @@ Auth.login = function(username, password, next) { if (!username || !password) { - next(new Error('[[error:invalid-password]]')); - return; + return next(new Error('[[error:invalid-password]]')); } var userslug = utils.slugify(username); @@ -236,7 +235,7 @@ return next(err); } - if(!uid) { + if (!uid) { return next(null, false, '[[error:no-user]]'); }