Created
May 9, 2015 20:23
-
-
Save pankajpatel/aa83e3779dbeca9567d4 to your computer and use it in GitHub Desktop.
Create New User on FirebaseDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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