import {AfterViewInit, ChangeDetectorRef, Component, Input, OnInit, ViewChild} from "@angular/core";
import {Role, 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";
@Component({
selector: 'role-verification',
template: `
You have been invited to join {{name}} {{(service === 'monitor' ? 'Monitor' : 'Research Community')}} 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 the OpenAIRE Monitor Dashboard for the {{name}}!
From now on, you will have access to our restricted content.
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.