mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 16:27:27 +02:00
derp
This commit is contained in:
@@ -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]]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user