NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:46:58 +0000 (12:46 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:46:58 +0000 (12:46 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 27e6052..e723439 100644 (file)
        "items" : [
         {
          "listeners" : {
-          "authenticate" : "(auth) => {\n\tvar rs =  RooTicket.singleton();\t\n    auth.authenticate(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION);\n\n}"
+          "authenticate" : "(auth) => {\n\tvar rs =  RooTicket.singleton();\t\n    auth.authenticate(new Credential(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION));\n\n}"
          },
          "id" : "view",
          "* pack" : "add",
index 2ffbb57..554fce4 100644 (file)
@@ -897,7 +897,7 @@ public class NewBranch : Object
             //listeners
             this.el.authenticate.connect( (auth) => {
                var rs =  RooTicket.singleton();        
-                auth.authenticate(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION);
+                auth.authenticate(new Credential(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION));
             
             });
         }