Skip to content

Commit

Permalink
Fix for #53
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Nov 26, 2018
1 parent 1f0947d commit b2d18b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var casaCallback = function (req, res) {
break
}
if (!obj) {
res.redirect(util.format('/casa/rest/idp-linking?failure=Provider %s not recognized in passport-casa mapping', provider))
res.redirect(util.format('/casa/rest/pl/social-plugin/idp-linking?failure=Provider %s not recognized in passport-casa mapping', provider))
} else {
logger.log2('verbose', 'At casaCallback, proceeding with linking procedure for provider %s', provider)
obj.authenticate(provider, { failureRedirect: '/passport/login' })(req,res)
Expand All @@ -102,7 +102,7 @@ var callbackResponse = function (req, res) {
var provider = req.user.provider
var postUrl
if (req.cookies['casa-' + provider]) {
postUrl = '/casa/rest/idp-linking/' + provider
postUrl = '/casa/rest/pl/social-plugin/idp-linking/' + provider
} else {
postUrl = global.config.applicationEndpoint
}
Expand Down

0 comments on commit b2d18b1

Please sign in to comment.