Skip to content

fix: unify password minimum length to 10 characters#91

Merged
softberries merged 1 commit intomainfrom
fix/unify-password-min-length
Apr 2, 2026
Merged

fix: unify password minimum length to 10 characters#91
softberries merged 1 commit intomainfrom
fix/unify-password-min-length

Conversation

@softberries
Copy link
Copy Markdown
Member

Description

Backend password_policy.rs enforced a 12-character minimum while the frontend password strength component and HTML minlength attributes used 10 characters. This caused the invite/setup pages to show "At least 10 characters" as met, but the backend would reject the password with "Password must be at least 12 characters".

Aligned the backend MIN_LENGTH to 10 to match the frontend.

Changes:

  • password_policy.rs: MIN_LENGTH 12 → 10, updated error message and tests

Checklist

  • Tests added or updated
  • cargo fmt passes
  • cargo clippy passes

Backend enforced 12-char minimum while frontend displayed 10-char
requirement, causing user confusion on invite/setup pages. Aligned
backend to match the 10-char minimum shown in the UI.
@softberries softberries merged commit 8dd047a into main Apr 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant