Skip to content

Commit

Permalink
[1Password] Compare field labels case insensitve
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmojo committed Jan 23, 2024
1 parent 835d1e5 commit 7d6295e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dynamic Folder/1Password/1Password v8 (Python).rdfx
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ class Converter:
field_label = field.get("label", None)
field_value = field.get("value", None)

if field_id == "username" or field_label == "username":
if field_id == "username" or field_label.casefold() == "username":
username = field_value
elif field_id == "password" or field_label == "password":
elif field_id == "password" or field_label.casefold() == "password":
password = field_value
elif field_id == "private_key" or field_label == "private key":
elif field_id == "private_key" or field_label.casefold() == "private key":
private_key = field_value

cred = { }
Expand Down Expand Up @@ -502,11 +502,11 @@ class Converter:
field_label = field.get("label", None)
field_value = field.get("value", None)

if field_id == "username" or field_label == "username":
if field_id == "username" or field_label.casefold() == "username":
username = field_value
elif field_id == "password" or field_label == "password":
elif field_id == "password" or field_label.casefold() == "password":
password = field_value
elif field_id == "private_key" or field_label == "private key":
elif field_id == "private_key" or field_label.casefold() == "private key":
private_key = field_value

cred = { }
Expand Down

0 comments on commit 7d6295e

Please sign in to comment.