Skip to content

Commit

Permalink
fix invitation link via /admin (dani-garcia#4950)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan0xC authored and BlackDex committed Oct 5, 2024
1 parent ea687c7 commit 93e1dcd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 93e1dcd

Please sign in to comment.