Skip to content

Instantly share code, notes, and snippets.

@thinkingserious
Created May 29, 2014 02:11
Show Gist options
  • Select an option

  • Save thinkingserious/94cb5ccbae82d26e0acc to your computer and use it in GitHub Desktop.

Select an option

Save thinkingserious/94cb5ccbae82d26e0acc to your computer and use it in GitHub Desktop.
userapp-function-signup
function signup() {
UserApp.User.save({
login: document.getElementById("username").value,
first_name: document.getElementById("name").value,
email: document.getElementById("email").value,
password: document.getElementById("password").value
}, function(error, user) {
if (error) {
alert("Error: " + error.message);
} else {
alert("Thank you for signing up!");
}
});
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment