1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

fix bug encrypt with share key

This commit is contained in:
Adrien Waksberg 2017-02-26 09:35:46 +01:00
parent cced11f6c4
commit e03614fb72

View file

@ -206,12 +206,16 @@ class MPW
end
@keys[key] = data
@password.each_keys { |id| set_password(id, get_password(id)) }
@otp_keys.each_keys { |id| set_otp_key(id, get_otp_key(id)) }
end
# Delete a public key
# args: key -> public key to delete
def delete_key(key)
@keys.delete(key)
@password.each_keys { |id| set_password(id, get_password(id)) }
@otp_keys.each_keys { |id| set_otp_key(id, get_otp_key(id)) }
end
# Set config