Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sandushi committed Oct 16, 2024
1 parent 487651a commit 0d02978
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3775,9 +3775,9 @@ export const extensions: Extensions = {
},
enableIndefiniteUserLockduration: {
hint:
"The account will be locked indefinitely after max failed attempts until the account " +
"is manually unlocked by an admin",
label: "Enable indefinite user lock duration",
"The account will be locked indefinitely after max failed attempts until the account " +
"is manually unlocked by an admin",
label: "Enable indefinite user lock duration"
},
accountLockTime: {
hint:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent<
errors.accountLockTime = t("extensions:manage.serverConfigurations.accountSecurity." +
"loginAttemptSecurity.form.fields.accountLockTime.validations.invalid");
} else if (((parseInt(values.accountLockTime, 10) < GovernanceConnectorConstants
.LOGINS_ATTEMPT_SECURITY_FORM_FIELD_CONSTRAINTS.ACCOUNT_LOCK_TIME_MIN_VALUE) &&
.LOGINS_ATTEMPT_SECURITY_FORM_FIELD_CONSTRAINTS.ACCOUNT_LOCK_TIME_MIN_VALUE) &&
!enableIndefiniteUserLockduration)
|| (parseInt(values.accountLockTime, 10) > GovernanceConnectorConstants
.LOGINS_ATTEMPT_SECURITY_FORM_FIELD_CONSTRAINTS.ACCOUNT_LOCK_TIME_MAX_VALUE)) {
Expand Down Expand Up @@ -331,7 +331,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent<
const updateEnableIndefiniteAccountLockDuration = (value: any) => {
setenableIndefiniteUserLockduration(value);
setLockDuration("0");
}
};

/**
* Renders sample info section with example configuration details.
Expand Down

0 comments on commit 0d02978

Please sign in to comment.