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:
@ -403,7 +403,8 @@ module.exports = exports = (log, loga, argv) ->
|
|||||||
app.get '/auth/addAuthDialog', (req, res) ->
|
app.get '/auth/addAuthDialog', (req, res) ->
|
||||||
# only makes sense to add alternative authentication scheme if
|
# only makes sense to add alternative authentication scheme if
|
||||||
# this the user is authenticated
|
# this the user is authenticated
|
||||||
if getUser(req)
|
user = getUser(req)
|
||||||
|
if user
|
||||||
referer = req.headers.referer
|
referer = req.headers.referer
|
||||||
|
|
||||||
currentSchemes = _.keys(user)
|
currentSchemes = _.keys(user)
|
||||||
|
Reference in New Issue
Block a user