diff --git a/server/social.coffee b/server/social.coffee index cdf53f4..7bffec5 100644 --- a/server/social.coffee +++ b/server/social.coffee @@ -403,7 +403,8 @@ module.exports = exports = (log, loga, argv) -> app.get '/auth/addAuthDialog', (req, res) -> # only makes sense to add alternative authentication scheme if # this the user is authenticated - if getUser(req) + user = getUser(req) + if user referer = req.headers.referer currentSchemes = _.keys(user)