From ba4270a28f5940bab24d01f0eb7a93d2887d8a75 Mon Sep 17 00:00:00 2001 From: "Ismail H. Ayaz" Date: Wed, 8 May 2024 14:55:33 +0300 Subject: [PATCH] fix: password policy displays history as rule Password history has no effect in front end. So there is no need to display it as a rule. --- src/ui/components/PasswordStrength/PasswordStrength.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/components/PasswordStrength/PasswordStrength.ts b/src/ui/components/PasswordStrength/PasswordStrength.ts index 83b39dc..25a3970 100755 --- a/src/ui/components/PasswordStrength/PasswordStrength.ts +++ b/src/ui/components/PasswordStrength/PasswordStrength.ts @@ -35,6 +35,9 @@ export default defineComponent({ } }, Object.keys(props.rules).map((policy) => { + if(policy === 'history'){ + return + } const elemText = translator.t( `passwordPolicy.${camelize(policy.replace('_', '-'))}`, [props.rules[policy]]