import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';
@Component({
selector: 'civ-verify-modal',
template: `
Sorry, we need you to verify your email address before you can do that.
Success! A new verification email is in your inbox.
`,
styles: []
})
export class VerifyModalComponent implements OnInit {
emailResent: boolean = false;
constructor(private authSvc: AuthService) {
}
ngOnInit() {
}
resendEmail() {
this.authSvc.resendVerificationEmail().subscribe(() => {
this.emailResent = true;
});
}
}