lib/omnivault/apple_keychain.rb in omnivault-0.1.0 vs lib/omnivault/apple_keychain.rb in omnivault-0.1.1
- old
+ new
@@ -20,9 +20,10 @@
def store(key, value)
keychain = open_or_create_keychain
if (entry = keychain.generic_passwords.where(label: key).all.first)
entry.password = value
+ entry.save!
else
keychain.generic_passwords.create(
service: key,
label: key,
password: value