Merge pull request #8 from fedwiki/fix

Fix empty list of providers when adding alternative identity.

Yes, this fix previously deployed into production with vi. DevOps indeed
This commit is contained in:
Ward Cunningham 2016-11-25 10:41:13 -08:00 committed by GitHub
commit 9f9a3c7802
1 changed files with 2 additions and 1 deletions

View File

@ -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)