Skip to content
Snippets Groups Projects
Commit 279b6c17 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

configure email domain restriction only if it isn't empty

parent aa63ee39
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ RocketChat.settings.get 'Accounts_AllowedDomainsList', (_id, value) ->
return ret
delete Accounts._options['restrictCreationByEmailDomain']
Accounts.config({ restrictCreationByEmailDomain: restrictCreationByEmailDomain });
if not _.isEmpty value
Accounts.config({ restrictCreationByEmailDomain: restrictCreationByEmailDomain });
Accounts.emailTemplates.siteName = RocketChat.settings.get 'Site_Name';
Accounts.emailTemplates.from = "#{RocketChat.settings.get 'Site_Name'} <#{RocketChat.settings.get 'From_Email'}>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment