vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit b0472d7aabae8e1bb1ba6bd639ffb3280ccc2f36
parent 89e544009faaf8e40c6b3983ccd6102b88d4fb47
Author: Miroslav Prasil <miroslav@prasil.info>
Date:   Sun, 13 May 2018 13:20:21 +0100

Delete owned ciphers on account deletion

Diffstat:
Msrc/api/core/accounts.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs @@ -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);