fix: firebase not defined in email handler

This commit is contained in:
Miodec 2024-02-25 13:09:24 +01:00
parent fd6d1cbbf8
commit 829174983a

View file

@ -171,6 +171,7 @@
confirmPasswordReset,
checkActionCode,
sendPasswordResetEmail,
signInWithEmailAndPassword,
} from "firebase/auth";
function isPasswordStrong(password) {
@ -249,9 +250,7 @@
$("main .preloader .text").text(`Your password has been changed`);
$("main .preloader .subText").text(`You can now close this tab`);
firebase
.auth()
.signInWithEmailAndPassword(accountEmail, newPassword);
signInWithEmailAndPassword(Auth, accountEmail, newPassword);
})
.catch((error) => {
$("main .preloader .icon").html(