Skip to content

Instantly share code, notes, and snippets.

@nosalvage
Created November 10, 2016 06:47
Show Gist options
  • Save nosalvage/69ffbe9dd029c1599691805348f6bbdf to your computer and use it in GitHub Desktop.
Save nosalvage/69ffbe9dd029c1599691805348f6bbdf to your computer and use it in GitHub Desktop.
firebase.auth().createUserWithEmailAndPassword(cred.email, cred.password).then(function (result) {
fireBaseData.refUser().child(result.uid).set({
telephone: cred.phone,
courier: false
});
}, function (error) {
sharedUtils.showAlert("Ошибка","Ошибка регистрации");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment