File

src/app/user/verify-email/verify-email.component.ts

Metadata

selector app-verify-email
styleUrls verify-email.component.scss
templateUrl verify-email.component.html

Constructor

constructor(auth: any, router: Router)

Methods

resendVerification
resendVerification()
Returns: void
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from 'src/app/services/auth/auth.service';

@Component({
  selector: 'app-verify-email',
  templateUrl: './verify-email.component.html',
  styleUrls: ['./verify-email.component.scss']
})
export class VerifyEmailComponent implements OnInit {

  constructor(
    private auth: AuthService,
    private router: Router
  ) { }

  ngOnInit(): void {
  }
  resendVerification(): void {
    this.auth.resendVerification()
    window.alert("The request to resend the verification email has been received. Please check your email.")
    this.router.navigate(['/'])
  }
}

results matching ""

    No results matching ""