From 65f8f0f21e6d8b465b90c1588827fc0cb0f521de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Mon, 17 Apr 2017 20:37:26 +0200 Subject: [PATCH] Fix a bug : shadow logins passwords were not deleted --- server/resources/gpass.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/resources/gpass.js b/server/resources/gpass.js index e8911d7..8415ea9 100755 --- a/server/resources/gpass.js +++ b/server/resources/gpass.js @@ -380,7 +380,11 @@ async function get_ciphered_credentials(masterkey) if (passwords[i].ciphered_login.length) { if (!passwords[i].access_token.length) - old_passwords.push(passwords[i]); + { + res = await passwords[i].decrypt(masterkey); + if(res) + old_passwords.push(passwords[i]); + } continue; }