diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 502a5917c8..809d9446b1 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -191,11 +191,12 @@ def valid_invite_token def valid_domain? specific_domain_emails = SettingGetter.new(setting_name: 'SpecificEmailDomainSignUp', provider: current_provider).call return true if specific_domain_emails.blank? + domains = specific_domain_emails.split(',') domains.each do |domain| return true if create_user_params[:email].end_with?(domain) end - return false + false end end end diff --git a/app/services/tenant_setup.rb b/app/services/tenant_setup.rb index 3ad1df3eb7..30b319c448 100644 --- a/app/services/tenant_setup.rb +++ b/app/services/tenant_setup.rb @@ -57,7 +57,7 @@ def create_site_settings { setting: Setting.find_by(name: 'DefaultRecordingVisibility'), provider: @provider, value: 'Published' }, { setting: Setting.find_by(name: 'Maintenance'), provider: @provider, value: '' }, { setting: Setting.find_by(name: 'SessionTimeout'), provider: @provider, value: '1' }, - { setting: Setting.find_by(name: 'SpecificEmailDomainSignUp'), value: '', provider: @provider }, + { setting: Setting.find_by(name: 'SpecificEmailDomainSignUp'), value: '', provider: @provider } ] end