From: Dan Breslau Date: Mon, 24 Oct 2016 17:25:59 +0000 (-0400) Subject: Use the NAI, not the display_name, as the hash ID for an IdCard X-Git-Tag: v0.9.6~8 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=commitdiff_plain;h=b646155bc64e5695f0ca4a363ae3b6ea00cd9bb3 Use the NAI, not the display_name, as the hash ID for an IdCard --- diff --git a/src/moonshot-identities-manager.vala b/src/moonshot-identities-manager.vala index 5cb4279..06f7ef6 100644 --- a/src/moonshot-identities-manager.vala +++ b/src/moonshot-identities-manager.vala @@ -64,7 +64,7 @@ public class PasswordHashTable : Object { private HashTable 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) {