mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-22 23:26:22 +01:00
Delete owned ciphers on account deletion
This commit is contained in:
parent
89e544009f
commit
b0472d7aab
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ fn delete_account(data: Json<PasswordData>, headers: Headers, conn: DbConn) -> E
|
|||
}
|
||||
|
||||
// Delete ciphers and their attachments
|
||||
for cipher in Cipher::find_by_user(&user.uuid, &conn) {
|
||||
for cipher in Cipher::find_owned_by_user(&user.uuid, &conn) {
|
||||
for a in Attachment::find_by_cipher(&cipher.uuid, &conn) { a.delete(&conn); }
|
||||
|
||||
cipher.delete(&conn);
|
||||
|
|
Loading…
Reference in a new issue