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:
commit
9f9a3c7802
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue