Open cjfagerstrom opened 8 years ago
I think you mean Ref.child('users', user.uid)
to Ref.child('users').child(users.Uid)
Nice catch, this solved it for me as well.
Neither of the above suggestions worked for me. However, this did:
var ref = Ref.child('users/' + user.uid)
@strickland84 's solution worked for me also.
Thanks for having this discussion here, helped me out alot.
var ref = Ref.child('users').child(user.uid)
worked for me.
When you click the register button, you get an error that 2 arguments were called on firebase.child instead of 1.
When this would occur, the user would be created in Firebase and trying to reregister would generate an error that the email was already taken. Logging in with the credentials and viewing the profile page displays no email address and no username.
I changed
Ref.child('users', user.uid)
toRef.child('users').child(user.id)
in login.js under thecreateProfile(user)
function and that fixed the issue.