aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Melmuk <[email protected]>2024-09-13 22:08:59 +0200
committerGitHub <[email protected]>2024-09-13 22:08:59 +0200
commit6ceed9284d16ba11cae4515d6ab666225725cb99 (patch)
tree1c0a1adbbdb363563c8ee57a56969ddc9c4ffc7f
parent25d99e3506a01b7d031d12f51d69a3cae3149065 (diff)
downloadvaultwarden-6ceed9284d16ba11cae4515d6ab666225725cb99.tar.gz
vaultwarden-6ceed9284d16ba11cae4515d6ab666225725cb99.zip
fix invitation link via /admin (#4950)
-rw-r--r--src/mail.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mail.rs b/src/mail.rs
index ce570171..53e6b31f 100644
--- a/src/mail.rs
+++ b/src/mail.rs
@@ -250,13 +250,9 @@ pub async fn send_invite(
query_params
.append_pair("email", &user.email)
.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);
- 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() {
query_params.append_pair("orgUserHasExistingUser", "true");
}