import {Component, Input, OnDestroy, OnInit, ViewChild} from "@angular/core";
import {User} from "../login/utils/helper.class";
import {ActivatedRoute, Router} from "@angular/router";
import {UserManagementService} from "../services/user-management.service";
import {UserRegistryService} from "../services/user-registry.service";
import {LoginErrorCodes} from "../login/utils/guardHelper.class";
import {Subscriber} from "rxjs";
import {FormBuilder, FormControl, Validators} from "@angular/forms";
import {AlertModal} from "../utils/modal/alert";
@Component({
selector: 'role-verification',
template: `
You have been invited to join {{name}} Monitor Dashboard as a manager.
Fill in the verification code, sent to your
email, to accept the invitation request.
{{error}}
You have been invited to join {{name}} Monitor Dashboard as a member.
Fill in the verification code, sent to
your
email, to accept the invitation request.
{{error}}
Welcome! You are now a member of {{name}}!
From now on, you will have access to our restricted content.
We are unable to process the request because the link is invalid, or it has expired.