Angularfire: how to send the verification email ....anyone help me...:?

Created on 30 Jul 2016  路  9Comments  路  Source: angular/angularfire

Most helpful comment

@jlsantos

Use the regular SDK

var auth = firebase.auth();
var emailAddress = "[email protected]";

auth.sendPasswordResetEmail(emailAddress).then(function() {
  // Email sent.
}, function(error) {
  // An error happened.
});

https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email

All 9 comments

  1. checks email template at firebase console
  2. use this.af.auth.getAuth().auth.sendEmailVerification();

@edicon thnks work like charm... ...
can u tell me how to send reset password email...

  1. I think the functionality is not implemented in the current angularfire2 version.
  2. Please use the function of firebase SDK 3.x.x directly.

And beware that this.af.auth.getAuth() is marked as deprecated and may be removed in a future release. So at this point, it is probably safest to use the Firebase JavaScript 3.x SDK directly for both of these use cases.

@Splaktar hey am using this... is it right way or use the the Firebase JavaScript 3.x SDK
this.af.auth.subscribe(data => { if(data) data.auth.sendverificationemail(data.auth.email); )

Use the JS SDK for now. We plan on wrapping those functions later.

Please, can anyone tell me how to send reset password email? Thank you.

@jlsantos

Use the regular SDK

var auth = firebase.auth();
var emailAddress = "[email protected]";

auth.sendPasswordResetEmail(emailAddress).then(function() {
  // Email sent.
}, function(error) {
  // An error happened.
});

https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email

Thank you @davideast!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sun3 picture Sun3  路  3Comments

jnupeter picture jnupeter  路  3Comments

martinyoussef picture martinyoussef  路  3Comments

StephenFluin picture StephenFluin  路  3Comments

isylhdin picture isylhdin  路  3Comments