vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit dacd50f3f1643fe1b5dd7a5fadcda37e234159fe
parent 94121126392d9531824ab74b308fa2144fa39b25
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 12 Aug 2023 22:19:20 +0200

Merge pull request #3740 from BlackDex/fix-ldap-import-org-status

Fix UserOrg status during LDAP Import
Diffstat:
Msrc/api/core/public.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/public.rs b/src/api/core/public.rs @@ -85,7 +85,7 @@ async fn ldap_import(data: JsonUpcase<OrgImportData>, token: PublicToken, mut co new_user } }; - let user_org_status = if CONFIG.mail_enabled() { + let user_org_status = if CONFIG.mail_enabled() || user.password_hash.is_empty() { UserOrgStatus::Invited as i32 } else { UserOrgStatus::Accepted as i32 // Automatically mark user as accepted if no email invites