The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/methods/registerUser.coffee

14 lines
304 B

Meteor.methods
registerUser: (formData) ->
userData =
email: formData.email
password: formData.pass
userId = Accounts.createUser userData
RocketChat.models.Users.setName userId, formData.name
if userData.email
Accounts.sendVerificationEmail(userId, userData.email);
return userId