Use the NAI, not the display_name, as the hash ID for an IdCard
authorDan Breslau <dbreslau@painless-security.com>
Mon, 24 Oct 2016 17:25:59 +0000 (13:25 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 24 Oct 2016 17:25:59 +0000 (13:25 -0400)
src/moonshot-identities-manager.vala

index 5cb4279..06f7ef6 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) {