angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

How to use sendPasswordResetEmail?

Open mjabian opened this issue 10 years ago • 5 comments

I see in this link sendPasswordResetEmail but somehow it's not supported when I use:

    this.af.auth.sendPasswordResetEmail({
      "email": email
    });

Any examples, or is this not yet implemented?

mjabian avatar Jul 24 '16 17:07 mjabian

Closed as per https://github.com/angular/angularfire2/pull/195

bangonkali avatar Jul 24 '16 17:07 bangonkali

Hi @mjabian,

Please look at my comment on #220, for a possible solution.

julienevano avatar Jul 24 '16 22:07 julienevano

@julienevano using this code

import { AngularFire, AngularFireAuth } from 'angularfire2'; import { Injectable } from '@angular/core'; //import * as firebase from "firebase"; //declare var firebase: any;

@Injectable() export class AuthService { firebaseAuth: AngularFireAuth;

constructor(private _AngularFire: AngularFire) { this.firebaseAuth = _AngularFire.auth; }

resetPassword(email: string): Promise { return firebase.auth().sendPasswordResetEmail(email); } }`

console error --> Q {code: "auth/internal-error", message: "17"}

shamrozwarraich avatar Jul 30 '16 09:07 shamrozwarraich

Looks like this can be closed as the answer can be found here: https://github.com/angular/angularfire2/issues/220#issuecomment-235373945

Splaktar avatar Aug 01 '16 23:08 Splaktar

@Splaktar using #220 but console errror... POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/getOobConfirmationCode?key=AIza 503 login.ts:30 failed Error: 17

shamrozwarraich avatar Aug 05 '16 11:08 shamrozwarraich