Skip to content

Commit

Permalink
lib: Add minimum progress value
Browse files Browse the repository at this point in the history
  • Loading branch information
skobyda committed Aug 22, 2023
1 parent 188d90a commit 5e53eb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/lib/cockpit-components-password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export const PasswordFormFields = ({
variant = "danger";

let passwordStrengthValue = Number.isInteger(passwordStrength) ? passwordStrength : 0;
if (password !== "" && (passwordStrengthValue >= 0 && passwordStrengthValue < 25))
passwordStrengthValue = 25;

return (
<>
Expand Down

0 comments on commit 5e53eb5

Please sign in to comment.