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

Commit

Permalink
preserving the option to redirect to a specific URL as done in saveOA…
Browse files Browse the repository at this point in the history
…uthUserProfile() (thanks to @OneOfTheWorld for pointing out)
  • Loading branch information
lirantal committed Jul 6, 2016
1 parent 31d5b3a commit b06bb2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ exports.oauthCallback = function (strategy) {
return res.redirect('/authentication/signin');
}

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

0 comments on commit b06bb2a

Please sign in to comment.