mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-10-30 09:48:20 +02:00
Fix Org identifier (#6364)
* Fix Org identifier * Org invitation default to SSO when SSO_ENABLED
This commit is contained in:
@@ -302,9 +302,9 @@ pub async fn send_invite(
|
||||
.append_pair("organizationUserId", &member_id)
|
||||
.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("orgSsoIdentifier", org_name);
|
||||
query_params.append_pair("orgSsoIdentifier", &org_id);
|
||||
} else if user.private_key.is_some() {
|
||||
query_params.append_pair("orgUserHasExistingUser", "true");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user