aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2022-11-26 19:07:28 +0100
committerBlackDex <[email protected]>2022-12-02 09:44:23 +0100
commit4aa6dd22bbe853542c2396821648f369d07bb951 (patch)
treeac2e3f82fb7a964ff0fede04c12b9352b4b556a4 /src/api/admin.rs
parent8feed2916fee7a06e82e6df5070a9c4ee042bcd0 (diff)
downloadvaultwarden-4aa6dd22bbe853542c2396821648f369d07bb951.tar.gz
vaultwarden-4aa6dd22bbe853542c2396821648f369d07bb951.zip
Cleanups and Fixes for Emergency Access
- Several cleanups and code optimizations for Emergency Access - Fixed a race-condition regarding jobs for Emergency Access - Some other small changes like `allow(clippy::)` removals Fixes #2925
Diffstat (limited to 'src/api/admin.rs')
-rw-r--r--src/api/admin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs
index 656f63bf..6c908bfc 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -284,7 +284,7 @@ async fn invite_user(data: Json<InviteData>, _token: AdminToken, mut conn: DbCon
if CONFIG.mail_enabled() {
mail::send_invite(&user.email, &user.uuid, None, None, &CONFIG.invitation_org_name(), None).await
} else {
- let invitation = Invitation::new(user.email.clone());
+ let invitation = Invitation::new(&user.email);
invitation.save(conn).await
}
}