import { Accounts } from 'meteor/accounts-base' if(Meteor.isCLient) { Accounts.ui.config({ passwordSignupFields: 'USERNAME_ONLY' }); } Accounts.config({ restrictCreationByEmailDomain: function(address) { return new RegExp('.*@avpanthers.org$', 'i').test(address) } });