Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@
>
<input
id="twoFactorCode"
type="text"
autocomplete="one-time-code"
inputmode="numeric"
name="totp"
aria-labelledby="2fa-input-label"
formControlName="twoFactorCode"
matInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div class="input-container">
<mat-label
class="orc-font-small-print"
for="totp"
i18n="@@ngOrcid.signin.2fa.label"
[ngClass]="{
error: isVerificationCodeInvalid
Expand All @@ -20,7 +21,11 @@
formControlName="verificationCode"
cdkFocusInitial
appTrim
autocomplete="off"
autocomplete="one-time-code"
Comment thread
olivier-maury marked this conversation as resolved.
id="totp"
inputmode="numeric"
name="totp"
type="text"
/>
</mat-form-field>
<ng-container *ngIf="!recoveryCode">
Expand Down Expand Up @@ -119,7 +124,10 @@
#inputRecoveryCode
formControlName="recoveryCode"
appTrim
autocomplete="off"
autocomplete="one-time-code"
inputmode="numeric"
name="totp"
type="text"
/>
</mat-form-field>
<ng-container *ngIf="recoveryCode">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
#inputVerificationCode
formControlName="verificationCode"
appTrim
autocomplete="off"
autocomplete="one-time-code"
id="totp"
inputmode="numeric"
name="totp"
type="text"
data-cy="verification-code-input"
/>
<mat-hint align="end"
Expand Down
Loading