[PR #4899] [MERGED] Allow Org Master-Pw policy enforcement #25738

Closed
opened 2026-05-29 04:46:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4899
Author: @BlackDex
Created: 8/26/2024
Status: Merged
Merged: 8/27/2024
Merged by: @dani-garcia

Base: mainHead: force-org-password-policy


📝 Commits (2)

  • 6943c6f Allow Org Master-Pw policy enforcement
  • bc0eafb Use .reduce instead of .fold

📊 Changes

1 file changed (+43 additions, -3 deletions)

View changed files

📝 src/api/identity.rs (+43 -3)

📄 Description

We didn't returned the master password policy for the user. If the Require existing members to change their passwords check was enabled this should trigger the login to show a change password dialog.

All the master password policies are merged into one during the login response and it will contain the max values and all true values which are set by all the different orgs if a user is an accepted member.

Fixes #4507


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/4899 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 8/26/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `force-org-password-policy` --- ### 📝 Commits (2) - [`6943c6f`](https://github.com/dani-garcia/vaultwarden/commit/6943c6f14ab5568d9abe10158a7aa0222e76b742) Allow Org Master-Pw policy enforcement - [`bc0eafb`](https://github.com/dani-garcia/vaultwarden/commit/bc0eafbdf1b3bdb7246ef5998e1abe2d4ed045af) Use .reduce instead of .fold ### 📊 Changes **1 file changed** (+43 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/api/identity.rs` (+43 -3) </details> ### 📄 Description We didn't returned the master password policy for the user. If the `Require existing members to change their passwords` check was enabled this should trigger the login to show a change password dialog. All the master password policies are merged into one during the login response and it will contain the max values and all `true` values which are set by all the different orgs if a user is an accepted member. Fixes #4507 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-29 04:46:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#25738