aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2021-09-09 20:30:29 +0200
committerDaniel García <[email protected]>2021-09-09 20:30:29 +0200
commita99c9715f641c4fe5e5603e36e1815f259326c97 (patch)
tree40db21fe581f879ad433dcb416894d50aab05789 /src/api/admin.rs
parent1a888b535564f30cab873f0725898db6f9bde792 (diff)
parent10d5c7738afad9f81958e24baa923530314a587f (diff)
downloadvaultwarden-a99c9715f641c4fe5e5603e36e1815f259326c97.tar.gz
vaultwarden-a99c9715f641c4fe5e5603e36e1815f259326c97.zip
Merge branch 'issue-1963' of https://github.com/BlackDex/vaultwarden into BlackDex-issue-1963
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 46e39502..3fe4f947 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -269,7 +269,7 @@ fn invite_user(data: Json<InviteData>, _token: AdminToken, conn: DbConn) -> Json
if CONFIG.mail_enabled() {
mail::send_invite(&user.email, &user.uuid, None, None, &CONFIG.invitation_org_name(), None)?;
} else {
- let invitation = Invitation::new(data.email);
+ let invitation = Invitation::new(user.email.clone());
invitation.save(&conn)?;
}