Skip to content

Commit

Permalink
feat: Updated forgot_password.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Feb 15, 2024
1 parent e2edde8 commit 1d79df3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forgot_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ <h1 id="forgot-password">Forgot Password</h1>
const analytics = getAnalytics(app);
const auth = getAuth(app);

document.getElementById('reset-password-button').addEventListener('click', function () {
document.addEventListener('DOMContentLoaded', (event) => {
document.getElementById('reset-password-button').addEventListener('click', function () {
var email = document.getElementById('lemail1').value;
sendPasswordResetEmail(auth, email).then(() => {
document.getElementById('errormessage1').innerHTML = "Password reset email sent!";
}).catch((error) => {
document.getElementById('errormessage1').innerHTML = "" + error.message;
});
});
});

AOS.init();
Expand Down

0 comments on commit 1d79df3

Please sign in to comment.