mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 05:58:37 +02:00
remove some unneeded mutability
This commit is contained in:
1 parent
aeb4b4c8a5
commit
473f8b8e31
5 files changed
+15
-15
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ fn invite_user(data: Json<InviteData>, _token: AdminToken, conn: DbConn) -> Empt
|
||||
let org_name = "bitwarden_rs";
|
||||
mail::send_invite(&user.email, &user.uuid, None, None, &org_name, None)
|
||||
} else {
|
||||
let mut invitation = Invitation::new(data.email);
|
||||
let invitation = Invitation::new(data.email);
|
||||
invitation.save(&conn)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user