Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/fauria/mean into fauria-m…
Browse files Browse the repository at this point in the history
…aster
  • Loading branch information
lirantal committed Jul 6, 2016
2 parents 6852993 + 66c6dc5 commit 31d5b3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'new-cap': [2, { newIsCapExceptions: ['acl.memoryBackend', 'acl'] }],
'no-bitwise': 0,
'no-caller': 2,
'no-console': 0,
'no-else-return': 0,
'no-empty-class': 0,
'no-multi-spaces': 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Check if there are additional accounts
function hasConnectedAdditionalSocialAccounts() {
return ($scope.user.additionalProvidersData && Object.keys($scope.user.additionalProvidersData).length);
return (vm.user.additionalProvidersData && Object.keys(vm.user.additionalProvidersData).length);
}

// Check if provider is already in use with current user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ exports.oauthCallback = function (strategy) {
var sessionRedirectURL = req.session.redirect_to;
delete req.session.redirect_to;

passport.authenticate(strategy, function (err, user, redirectURL) {
passport.authenticate(strategy, function (err, user, info) {
if (err) {
return res.redirect('/authentication/signin?err=' + encodeURIComponent(errorHandler.getErrorMessage(err)));
}
Expand All @@ -116,7 +116,7 @@ exports.oauthCallback = function (strategy) {
return res.redirect('/authentication/signin');
}

return res.redirect(redirectURL || sessionRedirectURL || '/');
return res.redirect(sessionRedirectURL || '/');
});
})(req, res, next);
};
Expand Down

0 comments on commit 31d5b3a

Please sign in to comment.