This is the code and reset password isn’t working pls help me out
1 Like
See that green error block? You’re going to want to set a label to it’s value so that you can see what error is happening.
2 Likes
can you help me what to do, the error is coming Missing sender
Is the email address you’re entering for the password reset an address that’s listed in your Firebase Console under Authentication–>Users?
This page seems to indicate it could be a number of things including an invalid email address or something caused by modifying Firebase’s email templates under Authentication–>Templates:
opened 03:26PM - 29 Nov 16 UTC
closed 02:12AM - 09 Jun 17 UTC
[ Warning : Designer trying to code]
When I try to send a password reset emai… l, I see the "missing sender" alert in my window and the "auth/invalid-email" error in my console to go along with it. I suspect that this has something to do with my email configuration. I did my darnedest to customize my email domain. I followed the steps in the firebase console, and my email client was verified.
As background, my problems first arose when I simply tried to click the 'send password reset' button from the firebase console, under the contextual menu for each user. This seems to be as far as I've made it, attempting to send the email programmatically. Any clues/hints/guesses offered would be greatly appreciated.
<img width="1440" alt="screen shot 2016-11-29 at 8 15 01 am" src="https://cloud.githubusercontent.com/assets/17304773/20715421/63741ebe-b60c-11e6-9d83-dd4f71c367c0.png">
<img width="1440" alt="screen shot 2016-11-29 at 8 15 08 am" src="https://cloud.githubusercontent.com/assets/17304773/20715423/63876816-b60c-11e6-9185-0961c90f593f.png">
<img width="1440" alt="screen shot 2016-11-29 at 8 15 15 am" src="https://cloud.githubusercontent.com/assets/17304773/20715422/63869b52-b60c-11e6-81fc-b92dd409dd42.png">
I apologize for the poorly formatted code, below, I'm not sure how to add returns and tabs.
`function sendPasswordReset() {
var email = document.getElementById('email').value;
// [START sendpasswordemail]
firebase.auth().sendPasswordResetEmail(email).then(function() {
// Password Reset Email Sent!
// [START_EXCLUDE]
alert('Password Reset Email Sent!');
// [END_EXCLUDE]
}).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// [START_EXCLUDE]
if (errorCode == 'auth/invalid-email') {
alert(errorMessage);
} else if (errorCode == 'auth/user-not-found') {
alert(errorMessage);
}
console.log(error);
// [END_EXCLUDE]
});
// [END sendpasswordemail];
}`
2 Likes