forked from External/greenlight
GRN-93: Fix for issue with excesive requests to LB (#447)
* Fix for issue with excesive requests to lb * Fixed issue with rspec on users not passing when run alone * Include dotenv in production
This commit is contained in:
@ -54,7 +54,9 @@ module SessionsHelper
|
||||
end
|
||||
|
||||
def parse_user_domain(hostname)
|
||||
hostname.split('.').first
|
||||
return hostname.split('.').first unless Rails.configuration.url_host
|
||||
return '' unless hostname.include?(Rails.configuration.url_host)
|
||||
hostname.chomp(Rails.configuration.url_host).chomp('.')
|
||||
end
|
||||
|
||||
def omniauth_options(env)
|
||||
|
Reference in New Issue
Block a user