Resetting Passwords

Sometimes users forget their passwords and need a way to reset it. In this lesson I will show you how to pass the users email to Firebase in order to get a password recovery email sent to them.

Forgot Password Form Submit Event Listener #

Press + to interact
// Forgot password form submit event
forgotPasswordForm.addEventListener(`submit`, event => {
event.preventDefault();
// Grab value from form
var emailAddress = document.getElementById(`forgot-password-email`).value;
});
...