From 0d02978d1a8e557eb9222b1d923039abd5e84016 Mon Sep 17 00:00:00 2001 From: sandushi Date: Wed, 16 Oct 2024 09:26:31 +0530 Subject: [PATCH] Fix lint issues --- .../src/extensions/i18n/resources/en-US/extensions.ts | 6 +++--- .../forms/login-attempt-security-form.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/console/src/extensions/i18n/resources/en-US/extensions.ts b/apps/console/src/extensions/i18n/resources/en-US/extensions.ts index 92cb5c26920..584087ab808 100755 --- a/apps/console/src/extensions/i18n/resources/en-US/extensions.ts +++ b/apps/console/src/extensions/i18n/resources/en-US/extensions.ts @@ -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: 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 e578b604c58..06e71fa0dba 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 @@ -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)) { @@ -331,7 +331,7 @@ export const LoginAttemptSecurityConfigurationFrom: FunctionComponent< const updateEnableIndefiniteAccountLockDuration = (value: any) => { setenableIndefiniteUserLockduration(value); setLockDuration("0"); - } + }; /** * Renders sample info section with example configuration details.