Skip to content

Commit adfb3e4

Browse files
committed
PD-4790 fix control names
1 parent ff9d0ca commit adfb3e4

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

projects/orcid-ui/src/lib/components/auth-challenge/auth-challenge.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ class ErrorStateMatcherForTwoFactorFields implements ErrorStateMatcher {
5252
],
5353
})
5454
export class AuthChallengeComponent implements OnInit, OnDestroy {
55-
@Input() codeControlName = 'twoFactorCodeControl'
56-
@Input() recoveryControlName = 'twoFactorRecoveryCodeControl'
55+
@Input() codeControlName = 'twoFactorCode'
56+
@Input() recoveryControlName = 'twoFactorRecoveryCode'
57+
// has "control" in the name to avoid conflicts with account settings password reset form which has the password field/control
5758
@Input() passwordControlName = 'passwordControl'
5859
@Input() showAlert = false
5960
@Input() showHelpText = true

src/app/account-settings/components/settings-security-password/settings-security-password.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@
229229
@if (twoFactorState) {
230230
<app-auth-challenge
231231
class="w-[537px] block mb-8"
232-
codeControlName="twoFactorCode"
233-
recoveryControlName="twoFactorRecoveryCode"
234232
[showPasswordField]="false"
235233
[showAlert]="true"
236234
[showTwoFactorField]="true"

0 commit comments

Comments
 (0)