mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-18 14:55:49 -04:00
Fix Proton Pass importer not importing email when there is no username
This commit is contained in:
parent
31c0b23890
commit
7d8e4f8f70
@ -73,7 +73,12 @@ namespace
|
||||
}
|
||||
|
||||
if (loginMap.contains("itemEmail")) {
|
||||
entry->attributes()->set("login_email", loginMap.value("itemEmail").toString());
|
||||
// Use the email as username if there is no username
|
||||
if (loginMap.value("itemUsername").toString().isEmpty()) {
|
||||
entry->setUsername(loginMap.value("itemEmail").toString());
|
||||
} else {
|
||||
entry->attributes()->set("login_email", loginMap.value("itemEmail").toString());
|
||||
}
|
||||
}
|
||||
|
||||
// Set the entry url(s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user