mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-18 09:52:56 -05:00
[PR #5923] [MERGED] Fix and improvements to password policies #32707
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/5923
Author: @Timshel
Created: 6/2/2025
Status: ✅ Merged
Merged: 6/2/2025
Merged by: @dani-garcia
Base:
main← Head:verifypassword📝 Commits (1)
19d5f91Fix and improvements to policies📊 Changes
4 files changed (+57 additions, -48 deletions)
View changed files
📝
src/api/core/accounts.rs(+4 -4)📝
src/api/identity.rs(+2 -42)📝
src/api/mod.rs(+50 -1)📝
src/db/models/org_policy.rs(+1 -1)📄 Description
Return the expected MasterPasswordPolicy when calling the user-verification endpoint.
This allows to enforce the policy when unlocking the screen.
And wrapped the
min_complexityandmin_lengthinoptionotherwise when set tonullthe whole policy was ignored.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.