forked from External/greenlight
Fix office365 if hd environment variable isn't set (#629)
This commit is contained in:
committed by
Jesus Federico
parent
eb82425747
commit
85da83f8b0
@ -99,14 +99,16 @@ module SessionsHelper
|
||||
end
|
||||
|
||||
def set_hd(env, hd)
|
||||
hd_opts = hd.split(',')
|
||||
env['omniauth.strategy'].options[:hd] =
|
||||
if hd_opts.empty?
|
||||
nil
|
||||
elsif hd_opts.length == 1
|
||||
hd_opts[0]
|
||||
else
|
||||
hd_opts
|
||||
if hd
|
||||
hd_opts = hd.split(',')
|
||||
env['omniauth.strategy'].options[:hd] =
|
||||
if hd_opts.empty?
|
||||
nil
|
||||
elsif hd_opts.length == 1
|
||||
hd_opts[0]
|
||||
else
|
||||
hd_opts
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user