Skip to content

Commit

Permalink
make sure user is set
Browse files Browse the repository at this point in the history
also set to an empty map first to ensure we get what we expect
  • Loading branch information
paul90 committed Nov 25, 2016
1 parent 84d6f25 commit 30b5f99
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 30b5f99

Please sign in to comment.