using credentials instead of pass to reauthenticate before updating the email address

This commit is contained in:
Miodec 2021-06-19 21:02:38 +01:00
parent e20821cd0f
commit feaee81711

View file

@ -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,