From 3263e846ccad4cf7e884bfc787c63fc952e42f78 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 Dec 2018 12:46:32 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 7042bce7..27e6052e 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -211,7 +211,7 @@ "items" : [ { "listeners" : { - "authenticate" : "(auth) => {\n\n\n}" + "authenticate" : "(auth) => {\n\tvar rs = RooTicket.singleton();\t\n auth.authenticate(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION);\n\n}" }, "id" : "view", "* pack" : "add", diff --git a/NewBranch.vala b/NewBranch.vala index de313c1f..2ffbb57c 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -896,7 +896,8 @@ public class NewBranch : Object //listeners this.el.authenticate.connect( (auth) => { - + var rs = RooTicket.singleton(); + auth.authenticate(rs.username, rs.password,WebKit.CredentialPersistence.FOR_SESSION); }); } -- 2.39.2