vaultwarden/src
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
..
api Allow enforcing Single Org with pw reset policy (#4903) 2024-08-30 21:37:59 +02:00
db Fix Login with device (#4878) 2024-08-21 21:57:52 +02:00
static Fix Vaultwarden Admin page error messages (#4869) 2024-08-18 21:04:22 +02:00
auth.rs Fix for RSA Keys which are read only (#4744) 2024-07-17 12:59:22 +02:00
config.rs Allow enforcing Single Org with pw reset policy (#4903) 2024-08-30 21:37:59 +02:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Improved HTTP client (#4740) 2024-07-12 22:33:11 +02:00
http_client.rs Improved HTTP client (#4740) 2024-07-12 22:33:11 +02:00
mail.rs Add Protected Actions Check (#4067) 2023-11-12 22:15:44 +01:00
main.rs Add support for MFA with Duo's Universal Prompt (#4637) 2024-07-24 16:50:35 +02:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Remove lowercase conversion for featureStates (#4820) 2024-08-07 21:55:58 +02:00