पर अतिरिक्त जानकारी कैसे जोड़ें इस डेटा सेट में मैं अतिरिक्त विशेषताएँ फ़ोन नंबर और पता कैसे जोड़ सकता हूं? ऐसा लगता है जैसे फायरबेस दस्तावेज उस बारे में कुछ भी निर्दिष्ट नहीं करता है।firebase.auth()
//Email Login
firebase.auth().signInWithEmailAndPassword(email, password).then(
ok => {
console.log("Logged in User",ok.user);
},
error => {
console.log("email/pass sign in error", error);
}
);
रजिस्टर:
//Sign Up
firebase.auth().createUserWithEmailAndPassword(email, password).then(
ok => {
console.log("Register OK", ok);
},
error => {
console.log("Register error", error);
}
)
अद्यतन:
मैं लॉगिन, रजिस्टर और अद्यतन firebase.auth()
लॉग इन का उपयोग कर लागू कर दिया है
//User Authentication firebase.auth().onAuthStateChanged(function(user) { if (user) { $scope.data=user; } else { // No user, Redirect to login page } }); //Save Function $scope.save=function(values){ $scope.data.updateProfile({ displayName: "Test User", email: "[email protected]", /* phone: 123412341, address: "Temp Address",*/ photoURL: "www.example.com/profile/img.jpg" }).then(function() { // Update successful. }, function(error) { // An error happened. }); };
कृपया, अगर जवाब हल करने में आपकी समस्या इसे स्वीकार करती है ताकि अन्य लोग समाधान जान सकें। साथ ही, अगर आपके पास और प्रश्न हैं तो मुझे बताएं :) –
यह एक अच्छा कार्यान्वयन है: http://stackoverflow.com/questions/32151178/how-do-you-include-a-username-when-storing-email- और-पासवर्ड-उपयोग-फ़ायरबेस-बी –
हां, यह फ़ायरबेस कार्यान्वयन है। लेकिन यह केवल इन गुणों तक ही सीमित है: https://firebase.google.com/docs/reference/ios/firebaseauth/interface_f_i_r_user#properties लिंक में मैंने अपने उत्तर में टिप्पणी में पोस्ट किया है, वे इस बारे में बात करते हैं;) –