angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

firebase updateMail change provider from email to anonymous when reset password from email

Open HerveGagnon opened this issue 7 years ago • 1 comments

Version info

Angular: 7.2.1 Firebase: 5.7.3 AngularFire: 5.1.1 Other (e.g. Ionic/Cordova, Node, browser, operating system):

How to reproduce these conditions

Failing test unit, Plunkr, or JSFiddle demonstrating the problem

  1. Create a Firebase user using auth .createUserWithEmailAndPassword(email, password).

  2. Send email to change password using auth .sendPasswordResetEmail(email)

  3. Switch email using auth.currentUser.updateEmail(newEmail)

  4. Click on link to change password in email sent in step 2.

  5. Firebase changes the provider from email to anonymous (removing the email).

  6. I need to assign the anonymous record to an email. How can this be done???

Steps to set up and reproduce

Sample data and security rules

<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

Actual behavior

HerveGagnon avatar Feb 04 '19 10:02 HerveGagnon

I was not signout the user between switching. Everything is ok now.

HerveGagnon avatar Feb 04 '19 17:02 HerveGagnon