Skip to content

Commit

Permalink
fix redirect url on login from social
Browse files Browse the repository at this point in the history
See issue from generator and docs pages: Logging in to social on latest was returning [Object, object] changing one line seems to have fixed it temporarily, but not sure of the implications to the generator.

    // return res.redirect(redirectURL || sessionRedirectURL || '/');
    return res.redirect(sessionRedirectURL || '/');
 
in users.authentication.server.controller at \path\to\project\modules\users\server\controllers\users\users.authentication.server.controller.js

meanjs/generator-meanjs#217
  • Loading branch information
snlacks committed Apr 28, 2016
1 parent 5214a1b commit b2d91d0
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(redirectURL || sessionRedirectURL || '/');
return res.redirect(sessionRedirectURL || '/');
});
})(req, res, next);
};
Expand Down

0 comments on commit b2d91d0

Please sign in to comment.