diff --git a/src/api/core/public.rs b/src/api/core/public.rs index b294591818c9393f5813373bcd3e63cce5e82c10..ab30635c7f225e9c76c2ddb939b5d086f66cfe5a 100644 --- 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