Skip to content

Instantly share code, notes, and snippets.

@pankajpatel
Created May 9, 2015 20:23
Show Gist options
  • Save pankajpatel/aa83e3779dbeca9567d4 to your computer and use it in GitHub Desktop.
Save pankajpatel/aa83e3779dbeca9567d4 to your computer and use it in GitHub Desktop.
Create New User on FirebaseDB
dbRef.createUser({
email : $('#registerEmail').val(), //get the email from Form
password : $('#registerPassword').val() //get the pass from Form
}, function(error, userData) {
if (error) {
console.log("Error creating user:", error);
} else {
console.log("Successfully created user account with uid:", userData.uid);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment