diff options
author | Daniel García <[email protected]> | 2021-09-09 20:30:29 +0200 |
---|---|---|
committer | Daniel García <[email protected]> | 2021-09-09 20:30:29 +0200 |
commit | a99c9715f641c4fe5e5603e36e1815f259326c97 (patch) | |
tree | 40db21fe581f879ad433dcb416894d50aab05789 /src/api/admin.rs | |
parent | 1a888b535564f30cab873f0725898db6f9bde792 (diff) | |
parent | 10d5c7738afad9f81958e24baa923530314a587f (diff) | |
download | vaultwarden-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.rs | 2 |
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)?; } |