From 829174983a898eebade66370ca639e15c3a42ed3 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 25 Feb 2024 13:09:24 +0100 Subject: [PATCH] fix: firebase not defined in email handler --- frontend/src/email-handler.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/email-handler.html b/frontend/src/email-handler.html index 4cdcd8a68..92e22d889 100644 --- a/frontend/src/email-handler.html +++ b/frontend/src/email-handler.html @@ -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(