Skip to content

Commit

Permalink
Merge pull request #8 from fedwiki/fix
Browse files Browse the repository at this point in the history
Fix empty list of providers when adding alternative identity.

Yes, this fix previously deployed into production with vi. DevOps indeed
  • Loading branch information
WardCunningham committed Nov 25, 2016
2 parents 84d6f25 + 30b5f99 commit 9f9a3c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/social.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f9a3c7

Please sign in to comment.