Browse Source

Merge branch 'main' into feature/automatic-user-confirmation

pull/7499/head
Tom 2 weeks ago
committed by GitHub
parent
commit
7a90daead1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      src/mail.rs

15
src/mail.rs

@ -307,9 +307,18 @@ pub async fn send_invite(
if CONFIG.sso_enabled() && CONFIG.sso_only() { if CONFIG.sso_enabled() && CONFIG.sso_only() {
query_params.append_pair("orgSsoIdentifier", &org_id); query_params.append_pair("orgSsoIdentifier", &org_id);
} }
if user.private_key.is_some() {
query_params.append_pair("orgUserHasExistingUser", "true"); // The web vault requires both of these parameters to be present.
} // If either is missing it rejects the invite client-side, before any
// request reaches the server, showing only "Unable to accept invitation".
query_params.append_pair("initOrganization", "false");
let org_user_has_existing_user = if user.private_key.is_some() {
"true"
} else {
"false"
};
query_params.append_pair("orgUserHasExistingUser", org_user_has_existing_user);
} }
let Some(query_string) = query.query() else { let Some(query_string) = query.query() else {

Loading…
Cancel
Save