Email is now Built-in! (#2635)

This commit is contained in:
Joe Milazzo 2024-01-20 11:16:54 -06:00 committed by GitHub
parent 2a539da24c
commit a85644fb6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
55 changed files with 5129 additions and 1047 deletions

View file

@ -49,6 +49,9 @@ export class ConfirmEmailChangeComponent implements OnInit {
this.accountService.confirmEmailUpdate({email: this.email, token: this.token}).subscribe((errors) => {
this.confirmed = true;
this.cdRef.markForCheck();
// Once we are confirmed, we need to refresh our user information (in case the user is already authenticated)
this.accountService.refreshAccount().subscribe();
setTimeout(() => this.router.navigateByUrl('login'), 2000);
});
}