Fix id card nai getter
authorAlberto Ruiz <aruiz@gnome.org>
Wed, 20 Jul 2011 13:59:59 +0000 (14:59 +0100)
committerAlberto Ruiz <aruiz@gnome.org>
Wed, 20 Jul 2011 13:59:59 +0000 (14:59 +0100)
src/moonshot-id.vala
src/moonshot-window.vala

index a2d59ac..58af2d7 100644 (file)
@@ -30,5 +30,5 @@ public class IdCard : Object
   
   public Gdk.Pixbuf pixbuf { get; set; default = null; }    
 
-  public unowned string nai { get {  _nai = username + "@" + password; return _nai;}}
+  public unowned string nai { get {  _nai = username + "@" + issuer; return _nai;}}
 }
index 9ae8806..eda06bf 100644 (file)
@@ -85,7 +85,8 @@ class MainWindow : Window
 
         foreach (IdCard candidate in candidates)
         {
-            if (&candidate == &id_card)
+            debug ("candidates -- %s", candidate.display_name);
+            if (candidate != id_card)
                 return true;
         }
         
@@ -452,7 +453,7 @@ class MainWindow : Window
             bool has_srv = request.service != null && request.service != "";
             bool confirm = false;
             IdCard nai_provided = null;
-            
+
             foreach (IdCard id in identities_manager.id_card_list)
             {
                 /* If NAI matches we add id card to the candidate list */