Various stability fixes and logging improvements
[moonshot-ui.git] / src / moonshot-identities-manager.vala
index 5cb4279..aad417e 100644 (file)
@@ -64,7 +64,7 @@ public class PasswordHashTable : Object {
     private HashTable<string, Password> password_table;
 
     private static string ComputeHashKey(IdCard card, IIdentityCardStore store) {
-        return "%s_store_%d".printf( card.display_name, store.get_store_type() );
+        return "%s_store_%d".printf( card.nai, store.get_store_type() );
     }
 
     public void CachePassword(IdCard card, IIdentityCardStore store) {
@@ -182,7 +182,7 @@ public class IdentityManagerModel : Object {
 
         bool found = false;
         foreach (IdCard id_card in card_list) {
-            logger.trace(@"load_id_cards: Loading card with display name '$(id_card.display_name)'");
+            logger.trace(@"load_id_cards: Loading card with display name '$(id_card.display_name)' and nai '$(id_card.nai)'");
 
             //!!TODO: This uniqueness check really belongs somewhere else -- like where we add
             // IDs, and/or read them from storage. However, we should never hit this.