Browse Source

fix(send_invite): add orgSsoIdentifier if sso_only is enabled (#6824)

pull/6853/merge
proofofcopilot 3 days ago
committed by GitHub
parent
commit
74819b95bd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/mail.rs

6
src/mail.rs

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

Loading…
Cancel
Save