Fix a bug : shadow logins passwords were not deleted

This commit is contained in:
Grégory Soutadé 2017-04-17 20:37:26 +02:00
parent a180cb62d7
commit 65f8f0f21e

View File

@ -380,7 +380,11 @@ async function get_ciphered_credentials(masterkey)
if (passwords[i].ciphered_login.length) if (passwords[i].ciphered_login.length)
{ {
if (!passwords[i].access_token.length) if (!passwords[i].access_token.length)
{
res = await passwords[i].decrypt(masterkey);
if(res)
old_passwords.push(passwords[i]); old_passwords.push(passwords[i]);
}
continue; continue;
} }