Skip to content

Node.js based forum software built for the modern web

derp

barisusakli18462c419040
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]]');
}