Browse Source

Org invitation default to SSO when SSO_ENABLED

pull/6364/head
Timshel 1 week ago
parent
commit
37f35e680e
  1. 2
      src/mail.rs

2
src/mail.rs

@ -302,7 +302,7 @@ pub async fn send_invite(
.append_pair("organizationUserId", &member_id) .append_pair("organizationUserId", &member_id)
.append_pair("token", &invite_token); .append_pair("token", &invite_token);
if CONFIG.sso_enabled() && CONFIG.sso_only() { if CONFIG.sso_enabled() {
query_params.append_pair("orgUserHasExistingUser", "false"); query_params.append_pair("orgUserHasExistingUser", "false");
query_params.append_pair("orgSsoIdentifier", &org_id); query_params.append_pair("orgSsoIdentifier", &org_id);
} else if user.private_key.is_some() { } else if user.private_key.is_some() {

Loading…
Cancel
Save