mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +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
|
end
|
||||||
|
|
||||||
@keys[key] = data
|
@keys[key] = data
|
||||||
@passwords.each_keys { |id| set_password(id, get_password(id)) }
|
@passwords.each_key { |id| set_password(id, get_password(id)) }
|
||||||
@otp_keys.each_keys { |id| set_otp_key(id, get_otp_key(id)) }
|
@otp_keys.each_key { |id| set_otp_key(id, get_otp_key(id)) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Delete a public key
|
# Delete a public key
|
||||||
# args: key -> public key to delete
|
# args: key -> public key to delete
|
||||||
def delete_key(key)
|
def delete_key(key)
|
||||||
@keys.delete(key)
|
@keys.delete(key)
|
||||||
@password.each_keys { |id| set_password(id, get_password(id)) }
|
@passwords.each_key { |id| set_password(id, get_password(id)) }
|
||||||
@otp_keys.each_keys { |id| set_otp_key(id, get_otp_key(id)) }
|
@otp_keys.each_key { |id| set_otp_key(id, get_otp_key(id)) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set config
|
# Set config
|
||||||
|
|
Loading…
Add table
Reference in a new issue