mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix bug encrypt with share key
This commit is contained in:
parent
cced11f6c4
commit
e03614fb72
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue