Skip to content

Instantly share code, notes, and snippets.

@kennethkoontz
Created August 10, 2012 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennethkoontz/3311667 to your computer and use it in GitHub Desktop.
Save kennethkoontz/3311667 to your computer and use it in GitHub Desktop.
if (Meteor.is_client) {
Template.account.email = function() {
return Meteor.user().emails[0];
}
Template.register.events = {
'click #register': function () {
var options = {
email: $('#email').val(),
password: $('#password').val()
};
Meteor.createUser(options, function (error, result) {
if (error)
console.log(error);
});
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment