Skip to content

Commit

Permalink
fix: password policy displays history as rule
Browse files Browse the repository at this point in the history
Password history has no effect in front end. So there is no need to display it as a rule.
  • Loading branch information
ayZagen committed May 8, 2024
1 parent e61e0b5 commit ba4270a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/components/PasswordStrength/PasswordStrength.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit ba4270a

Please sign in to comment.