UNPKG

splitify

Version:

Splitify is a way to save your time when sharing the restaurant bill with someone

22 lines (19 loc) 488 B
Template.signUp.events({ 'submit form#sign-up-form': function(event) { event.preventDefault(); //@todo: Validate signup form var item = { email: event.target.email.value, username: event.target.username.value, password: event.target.password.value, profile: {} }; Accounts.createUser(item, function(error) { if (error) { //@todo: toast the error console.log(error); } Router.go('profile'); }); } });