Skip to content

Commit

Permalink
fix invitation link via /admin
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan0xC committed Sep 13, 2024
1 parent 25d99e3 commit 4599035
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 @@ -248,15 +248,11 @@ pub async fn send_invite(
{
let mut query_params = query.query_pairs_mut();
query_params
.append_pair("organizationId", org_id.as_deref().unwrap_or("_"))
.append_pair("organizationUserId", org_user_id.as_deref().unwrap_or("_"))
.append_pair("email", &user.email)
.append_pair("organizationName", org_name)
.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 4599035

Please sign in to comment.