diff --git a/src/app/sign-in/components/form-sign-in/form-sign-in.component.html b/src/app/sign-in/components/form-sign-in/form-sign-in.component.html index d092ea4465..d1f7c763ff 100644 --- a/src/app/sign-in/components/form-sign-in/form-sign-in.component.html +++ b/src/app/sign-in/components/form-sign-in/form-sign-in.component.html @@ -62,7 +62,7 @@ () @Output() show2FAEmitter = new EventEmitter() @Output() loading = new EventEmitter() @@ -80,6 +78,8 @@ export class FormSignInComponent implements OnInit, AfterViewInit, OnDestroy { private readonly $destroy = new Subject() authorizationFormSubmitted: boolean backendErrorsMatcher = new ErrorStateMatcherForPasswordField() + emailVerified: boolean + invalidVerifyUrl: boolean placeholderUsername = $localize`:@@ngOrcid.signin.username:Email or 16-digit ORCID iD` placeholderPassword = $localize`:@@ngOrcid.signin.yourOrcidPassword:Your ORCID password` @@ -142,6 +142,14 @@ export class FormSignInComponent implements OnInit, AfterViewInit, OnDestroy { } }) } + + if (platform.queryParameters.emailVerified) { + this.emailVerified = platform.queryParameters.emailVerified + } + + if (platform.queryParameters.invalidVerifyUrl) { + this.invalidVerifyUrl = platform.queryParameters.invalidVerifyUrl + } }) } diff --git a/src/app/sign-in/pages/sign-in/sign-in.component.html b/src/app/sign-in/pages/sign-in/sign-in.component.html index cdccbed2cb..b71372efae 100644 --- a/src/app/sign-in/pages/sign-in/sign-in.component.html +++ b/src/app/sign-in/pages/sign-in/sign-in.component.html @@ -33,8 +33,6 @@ [email]="email" #formSignInComponent [signInType]="signInType" - [emailVerified]="emailVerified" - [invalidVerifyUrl]="invalidVerifyUrl" (show2FAEmitter)="show2FAEmitter($event)" (isOauthError)="isOauthError = $event" (errorDescription)="errorDescription = $event"