Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-24 05:30:28 +01:00
fix invitation link via /admin (#4950)
Dieser Commit ist enthalten in:
Ursprung
25d99e3506
Commit
6ceed9284d
1 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen
|
@ -250,13 +250,9 @@ pub async fn send_invite(
|
||||||
query_params
|
query_params
|
||||||
.append_pair("email", &user.email)
|
.append_pair("email", &user.email)
|
||||||
.append_pair("organizationName", org_name)
|
.append_pair("organizationName", org_name)
|
||||||
|
.append_pair("organizationId", org_id.as_deref().unwrap_or("_"))
|
||||||
|
.append_pair("organizationUserId", org_user_id.as_deref().unwrap_or("_"))
|
||||||
.append_pair("token", &invite_token);
|
.append_pair("token", &invite_token);
|
||||||
if let Some(id) = org_id {
|
|
||||||
query_params.append_pair("organizationId", &id);
|
|
||||||
};
|
|
||||||
if let Some(id) = org_user_id {
|
|
||||||
query_params.append_pair("organizationUserId", &id);
|
|
||||||
};
|
|
||||||
if user.private_key.is_some() {
|
if user.private_key.is_some() {
|
||||||
query_params.append_pair("orgUserHasExistingUser", "true");
|
query_params.append_pair("orgUserHasExistingUser", "true");
|
||||||
}
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren