mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01: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