Hi Sander
I agree with you, I do something similar encapsulate some methods in a
service (auth.service.ts)
But the real problem is that I want to update the *emailVerified*, when the
user executes the account verification link in his email account, something
similar to the forgot password.
Maybe I do not comment that I keep in a user collection, the user data, and
in that collection I want to update the corresponding document in this case
the attribute emailVerified and Password.
Regards
El jueves, 17 de octubre de 2019, 23:05:48 (UTC-4), Irnel Victoria escribió:
>
> I have the following AngularFireAuth methods.
>
>
> // Send email verification when new user sign up
> SendVerificationMail() {
> return this.afAuth.auth.currentUser.sendEmailVerification();
> }
>
> // Reset Forgot password
> ForgotPassword(email) {
> return this.afAuth.auth.sendPasswordResetEmail(email);
> }
>
>
>
> Now I want that when I send the account verification email, to the user to
> execute the verification link, the emailVerified parameter that its value
> is false, is updated and changed to true, the same with the ForgotPassword.
>
> Thanks
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/17bb7421-7498-4ebf-872b-9c9e1174512d%40googlegroups.com.