From feaee8171146be1b27accd8c35ee85c0f99a9938 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 19 Jun 2021 21:02:38 +0100 Subject: [PATCH] using credentials instead of pass to reauthenticate before updating the email address --- src/js/simple-popups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/simple-popups.js b/src/js/simple-popups.js index 8c67f74e6..536bc33df 100644 --- a/src/js/simple-popups.js +++ b/src/js/simple-popups.js @@ -168,7 +168,7 @@ list.updateEmail = new SimplePopup( pass ); Loader.show(); - user.reauthenticateWithCredential(pass).then(() => { + user.reauthenticateWithCredential(credential).then(() => { CloudFunctions.updateEmail({ uid: user.uid, previousEmail: previousEmail,