Fix a bug : update_masterkey generates a token from only one master key and not for the corresponding masterkey
This commit is contained in:
parent
65f8f0f21e
commit
ef82f2640f
|
@ -782,7 +782,8 @@ function delete_entry(entry_number)
|
||||||
var found = -1;
|
var found = -1;
|
||||||
for(i=0; i<passwords.length; i++)
|
for(i=0; i<passwords.length; i++)
|
||||||
{
|
{
|
||||||
if (passwords[i].ciphered_login == ciphered_login.getAttribute("login"))
|
if (passwords[i].ciphered_login == ciphered_login.getAttribute("login") ||
|
||||||
|
passwords[i].shadow_login == ciphered_login.getAttribute("login"))
|
||||||
{
|
{
|
||||||
found = i;
|
found = i;
|
||||||
break;
|
break;
|
||||||
|
@ -916,6 +917,9 @@ async function update_masterkey()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (use_shadow_logins)
|
||||||
|
await passwords[i].generate_access_token(current_mkey);
|
||||||
|
|
||||||
global_iv = new_global_iv;
|
global_iv = new_global_iv;
|
||||||
await passwords[i].encrypt(current_mkey);
|
await passwords[i].encrypt(current_mkey);
|
||||||
ok = add_password_server(current_user, passwords[i]);
|
ok = add_password_server(current_user, passwords[i]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user