diff --git a/features/admin.server-configurations.v1/forms/login-attempt-security-form.tsx b/features/admin.server-configurations.v1/forms/login-attempt-security-form.tsx index 06e71fa0dba..ec56aac00ff 100644 --- a/features/admin.server-configurations.v1/forms/login-attempt-security-form.tsx +++ b/features/admin.server-configurations.v1/forms/login-attempt-security-form.tsx @@ -146,7 +146,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent< const [ lockDuration, setLockDuration ] = useState(undefined); const [ lockIncrementRatio, setLockIncrementRatio ] = useState(undefined); const [ notifyUserOnAccountLockIncrement, setNotifyUserOnAccountLockIncrement ] = useState(undefined); - const [ enableIndefiniteUserLockduration, setenableIndefiniteUserLockduration ] = useState(undefined); + const [ enableIndefiniteUserLockduration, setEnableIndefiniteUserLockduration ] = useState(undefined); const [ accordionActiveIndex, setAccordionActiveIndex ] = useState(undefined); /** @@ -174,7 +174,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent< accountLockTime: property.value }; setLockDuration(property.value); - setenableIndefiniteUserLockduration(parseInt(property.value) === 0); + setEnableIndefiniteUserLockduration(parseInt(property.value) === 0); } else if (property.name === ServerConfigurationsConstants.ACCOUNT_LOCK_TIME_INCREMENT_FACTOR) { resolvedInitialValues = { ...resolvedInitialValues, @@ -329,7 +329,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent< }; const updateEnableIndefiniteAccountLockDuration = (value: any) => { - setenableIndefiniteUserLockduration(value); + setEnableIndefiniteUserLockduration(value); setLockDuration("0"); }; @@ -573,7 +573,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent< .ACCOUNT_LOCK_INCREMENT_FACTOR_MIN_LENGTH } width={ 10 } - disabled={ !isConnectorEnabled } + disabled={ !isConnectorEnabled || enableIndefiniteUserLockduration } data-testid={ `${testId}-account-lock-increment` } readOnly={ readOnly } />