From dbad6932cbb397d56120bfcac527178afcdeb3a3 Mon Sep 17 00:00:00 2001 From: Anant Narayanan Date: Sun, 24 May 2009 00:25:30 +0200 Subject: [PATCH] Use first login found if there are multiple GUIDs --- services/sync/modules/engines/passwords.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/sync/modules/engines/passwords.js b/services/sync/modules/engines/passwords.js index 94c26345407..c0b1d683993 100644 --- a/services/sync/modules/engines/passwords.js +++ b/services/sync/modules/engines/passwords.js @@ -111,10 +111,11 @@ PasswordStore.prototype = { prop.setPropertyAsAUTF8String("guid", id); 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]; } else { - this._log.warn(logins.length + " items matching " + id + ". Ignoring"); + this._log.warn("No items matching " + id + " found. Ignoring"); } return false; },