1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2025-03-03 15:17:02 +01:00
vaultwarden/src/api/core
Mathijs van Veluw 544b7229e8
Allow enforcing Single Org with pw reset policy (#4903)
* Allow enforcing Single Org with pw reset policy

Bitwarden only allows the Reset Password policy to be set when the Single Org policy is enabled already.
This PR adds a check so that this can be enforced when a config option is enabled.

Since Vaultwarden encouraged to use multiple orgs when groups were not available yet we should not enable this by default now.
This might be something to do in the future.

When enabled, it will prevent the Reset Password policy to be enabled if the Single Org policy is not enabled.
It will also prevent the Single Org policy to be disabled if the Reset Password policy is enabled.

Fixes #4855

Signed-off-by: BlackDex <black.dex@gmail.com>

* Removed some extra if checks

Signed-off-by: BlackDex <black.dex@gmail.com>

---------

Signed-off-by: BlackDex <black.dex@gmail.com>
2024-08-30 21:37:59 +02:00
..
two_factor Remove unecessary email normalization (#4840) 2024-08-17 22:48:59 +02:00
accounts.rs Fix Login with device (#4878) 2024-08-21 21:57:52 +02:00
ciphers.rs remove overzealous sanity check (#4879) 2024-08-21 21:54:13 +02:00
emergency_access.rs Some fixes for emergency access (#4715) 2024-07-08 23:39:22 +02:00
events.rs Change API and structs to camelCase (#4386) 2024-06-23 21:31:02 +02:00
folders.rs Fix duplicate folder creations during import (#4702) 2024-07-04 19:57:32 +02:00
mod.rs Remove version from server config info (#4885) 2024-08-22 21:42:30 +02:00
organizations.rs Allow enforcing Single Org with pw reset policy (#4903) 2024-08-30 21:37:59 +02:00
public.rs Change API and structs to camelCase (#4386) 2024-06-23 21:31:02 +02:00
sends.rs Secure send file uploads (#4810) 2024-07-31 15:24:15 +02:00