We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5cd61 commit 217ee01Copy full SHA for 217ee01
src/format/ProtonPassReader.cpp
@@ -73,7 +73,13 @@ namespace
73
}
74
75
if (loginMap.contains("itemEmail")) {
76
- entry->attributes()->set("login_email", loginMap.value("itemEmail").toString());
+ // Place the email value as the username if empty, otherwise set it as an attribute
77
+ const auto email = loginMap.value("itemEmail").toString();
78
+ if (entry->username().isEmpty()) {
79
+ entry->setUsername(email);
80
+ } else if (!email.isEmpty()) {
81
+ entry->attributes()->set("login_email", email);
82
+ }
83
84
85
// Set the entry url(s)
0 commit comments