Skip to content

Commit

Permalink
fix: firebase not defined in email handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Feb 25, 2024
1 parent fd6d1cb commit 8291749
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/email-handler.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
confirmPasswordReset,
checkActionCode,
sendPasswordResetEmail,
signInWithEmailAndPassword,
} from "firebase/auth";

function isPasswordStrong(password) {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8291749

Please sign in to comment.