import {AfterViewInit, ChangeDetectorRef, Component, Input, OnInit, ViewChild} from "@angular/core";
import {Role, RoleUtils, 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 {Subscription} from "rxjs";
import {UntypedFormBuilder, UntypedFormControl, Validators} from "@angular/forms";
import {AlertModal} from "../utils/modal/alert";
import {properties} from "../../../environments/environment";
import {EmailService} from "../utils/email/email.service";
import {Composer} from "../utils/email/composer";
import {ClearCacheService} from "../services/clear-cache.service";
import {BaseComponent} from "../sharedComponents/base/base.component";
import {StakeholderUtils} from "../monitor-admin/utils/indicator-utils";
import {StringUtils} from "../utils/string-utils.class";
@Component({
selector: 'role-verification',
template: `
You have been invited to join {{name}} {{(dashboard)}} Dashboard as a {{roleUtils.roles.manager}}.
Fill in the verification code, sent to
your email, to accept the invitation request.
{{error}}
You have been invited to join {{name}} {{(dashboard)}} Dashboard as a {{roleUtils.roles.member}}.
Fill in the verification code, sent
to your email, to accept the invitation request.
{{error}}
We are unable to process the request. What happened?
You are logged in with a different email, than the one you have received the invitation.
Check
herehere
the email of your account.