Fix Org identifier (#6364)

* Fix Org identifier

* Org invitation default to SSO when SSO_ENABLED
This commit is contained in:
Timshel
2025-10-21 19:20:18 +02:00
committed by GitHub
parent e659a61581
commit 8043f7eca7
2 changed files with 7 additions and 5 deletions

View File

@@ -355,9 +355,11 @@ async fn get_auto_enroll_status(identifier: &str, headers: Headers, mut conn: Db
let (id, identifier, rp_auto_enroll) = match org {
None => (get_uuid(), identifier.to_string(), false),
Some(org) => {
(org.uuid.to_string(), org.name, OrgPolicy::org_is_reset_password_auto_enroll(&org.uuid, &mut conn).await)
}
Some(org) => (
org.uuid.to_string(),
org.uuid.to_string(),
OrgPolicy::org_is_reset_password_auto_enroll(&org.uuid, &mut conn).await,
),
};
Ok(Json(json!({