Skip to content

Commit

Permalink
Merge pull request #26 from amirotin/master
Browse files Browse the repository at this point in the history
Add missing else statement
  • Loading branch information
1602 committed Feb 12, 2014
2 parents aea97f4 + 007310d commit aded463
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/strategies/local.js
Expand Up @@ -21,10 +21,10 @@ exports.callback = function (email, password, done) {
} else if (len === 3) {
exports.User.verifyPassword(password, user.password, function(err, isMatch) {
return done(err, !err && isMatch ? user : false);

});
} else {
return done(err, false);
}
return done(err, false);
});
};

Expand All @@ -40,4 +40,3 @@ exports.init = function (conf, app) {
}), exports.redirectOnSuccess);

};

0 comments on commit aded463

Please sign in to comment.