Meteor: check email does not exist in Meteor.users collection before creating an account
问题 I have a form where users enter their email address and password into a join form. This creates the account but I now want to develop it further. client.js: Template.joinForm.events({ 'submit .form-join': function(e, t) { e.preventDefault(); var email = t.find('#email').value, password = t.find('#password').value, username = Random.id(), array = [], profile = { nameOfArray: array }; Accounts.createUser({ email: email, username: username, password: password, profile: profile }, function(error)