default key type to age and rename to age-key/pgp-key

This commit is contained in:
Jörg Thalheim
2024-10-01 12:00:37 +02:00
committed by Mic92
parent 4cd4334b1c
commit ca4ff0611c
2 changed files with 21 additions and 6 deletions

View File

@@ -104,7 +104,8 @@ def maybe_get_user_or_machine(
for user in folder.iterdir():
if not (user / "key.json").exists():
continue
if read_key(user) == (pub_key, key_type):
this_pub_key, this_key_type = read_key(user)
if pub_key == this_pub_key and key_type == this_key_type:
key.username = user.name
return key