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) {
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.