mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix each_key
This commit is contained in:
parent
da81f34e07
commit
52577425a6
1 changed files with 4 additions and 4 deletions
|
@ -206,16 +206,16 @@ class MPW
|
|||
end
|
||||
|
||||
@keys[key] = data
|
||||
@passwords.each_keys { |id| set_password(id, get_password(id)) }
|
||||
@otp_keys.each_keys { |id| set_otp_key(id, get_otp_key(id)) }
|
||||
@passwords.each_key { |id| set_password(id, get_password(id)) }
|
||||
@otp_keys.each_key { |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)) }
|
||||
@passwords.each_key { |id| set_password(id, get_password(id)) }
|
||||
@otp_keys.each_key { |id| set_otp_key(id, get_otp_key(id)) }
|
||||
end
|
||||
|
||||
# Set config
|
||||
|
|
Loading…
Add table
Reference in a new issue