v1.18.x
barisusakli 10 years ago
parent 698d113857
commit 18462c4190

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

Loading…
Cancel
Save