RooTicket.vala
authorAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:18:03 +0000 (13:18 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:18:03 +0000 (13:18 +0800)
RooTicket.vala

index ca3c101..b1dc975 100644 (file)
@@ -20,6 +20,9 @@ class RooTicket : Object
         return _RooTicket;
     }
        public Gee.ArrayList<RooTicket> tickets; // only available for singletonn.
+       public string username = ""; // only available for singletonn.
+       public string password = ""; // only available for singletonn.
+
 
        public string  id; // not really important that they are numbers..
        public string summary;
@@ -128,7 +131,8 @@ class RooTicket : Object
                        password = bits[5];
                        
                }
-
+               RooTicket.singleton().user = 
+       
                var authCode = Base64.encode ("%s:%s".printf(username, password).data);
                message.request_headers.append("Authorization", "Basic %s".printf(authCode));