Skip to content

Commit

Permalink
correctly handle empty GOOGLE_OAUTH2_hd
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed Jul 25, 2017
1 parent 9ff5519 commit 9edf2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
scope: ['profile', 'email', 'youtube', 'youtube.upload'],
access_type: 'online',
name: 'google',
hd: ENV['GOOGLE_OAUTH2_HD']
hd: ENV['GOOGLE_OAUTH2_HD'].blank? ? nil : ENV['GOOGLE_OAUTH2_HD']
provider :ldap,
host: ENV['LDAP_SERVER'],
port: ENV['LDAP_PORT'],
Expand Down

0 comments on commit 9edf2bc

Please sign in to comment.