mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix Proton Pass importer not importing email when there is no username
This commit is contained in:
committed by
Jonathan White
parent
b271804c3f
commit
049e7eea9a
@@ -73,7 +73,13 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (loginMap.contains("itemEmail")) {
|
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)
|
// Set the entry url(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user