diff --git a/src/app/authorize/components/form-authorize/form-authorize.component.html b/src/app/authorize/components/form-authorize/form-authorize.component.html index 6e6bd48607..f753ae9ae1 100644 --- a/src/app/authorize/components/form-authorize/form-authorize.component.html +++ b/src/app/authorize/components/form-authorize/form-authorize.component.html @@ -177,10 +177,11 @@

- profile icon + profile icon
diff --git a/src/app/cdk/two-factor-authentication-form/two-factor/two-factor-authentication-form.component.html b/src/app/cdk/two-factor-authentication-form/two-factor/two-factor-authentication-form.component.html index ab93f2ac42..edf4e9003c 100644 --- a/src/app/cdk/two-factor-authentication-form/two-factor/two-factor-authentication-form.component.html +++ b/src/app/cdk/two-factor-authentication-form/two-factor/two-factor-authentication-form.component.html @@ -7,8 +7,7 @@ class="orc-font-small-print" i18n="@@ngOrcid.signin.2fa.label" [ngClass]="{ - error: - verificationFormControl?.touched && verificationFormControl.errors + error: verificationWasTouched && isVerificationCodeInvalid }" *ngIf="!recoveryCode && signInUpdatesV1Togglz" >Two-factor authentication code @@ -32,10 +31,51 @@ appTrim autocomplete="off" /> - {{ inputVerificationCode.value?.length || 0 }}/6 + {{ inputVerificationCode.value?.length || 0 }}/6 + +

+ Authentication code is required +

+

+ {{ inputVerificationCode.value?.length || 0 }}/6 +

+
+ + +

+ Invalid authentication code length +

+

+ {{ inputVerificationCode.value?.length || 0 }}/6 +

+
+ + + + {{ verificationFormControl.value?.length || 0 }}/6 + -

- {{ inputVerificationCode.value?.length || 0 }}/6 + {{ verificationFormControl.value?.length || 0 }}/6

- {{ inputVerificationCode.value?.length || 0 }}/6 + {{ verificationFormControl.value?.length || 0 }}/6

- +
-

+

- {{ inputRecoveryCode.value?.length || 0 }}/10 + {{ inputRecoveryCode.value?.length || 0 }}/10 + +

+ Recovery code is required +

+

+ {{ inputRecoveryCode.value?.length || 0 }}/10 +

+ + + +

+ Invalid recovery code length +

+

+ {{ inputRecoveryCode.value?.length || 0 }}/10 +

+
+ + + + {{ recoveryCodeFormControl.value?.length || 0 }}/10 + -

- {{ inputRecoveryCode.value?.length || 0 }}/10 + {{ recoveryCodeFormControl.value?.length || 0 }}/10

- {{ inputRecoveryCode.value?.length || 0 }}/10 + {{ recoveryCodeFormControl.value?.length || 0 }}/10

- +