mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Use first login found if there are multiple GUIDs
This commit is contained in:
parent
b6a3ce9d6e
commit
dbad6932cb
@ -111,10 +111,11 @@ PasswordStore.prototype = {
|
|||||||
prop.setPropertyAsAUTF8String("guid", id);
|
prop.setPropertyAsAUTF8String("guid", id);
|
||||||
|
|
||||||
let logins = Svc.Login.searchLogins({}, prop);
|
let logins = Svc.Login.searchLogins({}, prop);
|
||||||
if (logins.length == 1) {
|
if (logins.length > 0) {
|
||||||
|
this._log.info(logins.length + " items matching " + id + " found.");
|
||||||
return logins[0];
|
return logins[0];
|
||||||
} else {
|
} else {
|
||||||
this._log.warn(logins.length + " items matching " + id + ". Ignoring");
|
this._log.warn("No items matching " + id + " found. Ignoring");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user