mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-20 04:44:43 -04:00
Fix Proton Pass importer not importing email when there is no username
This commit is contained in:
parent
7a5cd6105c
commit
217ee01572
1 changed files with 7 additions and 1 deletions
|
@ -73,7 +73,13 @@ namespace
|
|||
}
|
||||
|
||||
if (loginMap.contains("itemEmail")) {
|
||||
entry->attributes()->set("login_email", loginMap.value("itemEmail").toString());
|
||||
// Place the email value as the username if empty, otherwise set it as an attribute
|
||||
const auto email = loginMap.value("itemEmail").toString();
|
||||
if (entry->username().isEmpty()) {
|
||||
entry->setUsername(email);
|
||||
} else if (!email.isEmpty()) {
|
||||
entry->attributes()->set("login_email", email);
|
||||
}
|
||||
}
|
||||
|
||||
// Set the entry url(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue