From f8376ce65424e3ee9c45e36aa4b6d1506ab086ef Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 16 Oct 2017 11:54:42 +0200 Subject: [PATCH] Build fix; force SSL on bitId --- Site/Master-v5.master.cs | 4 ++-- Site/Pages/v5/Admin/OrgSettings.aspx.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs index 86cf1f8e..d3fda71f 100644 --- a/Site/Master-v5.master.cs +++ b/Site/Master-v5.master.cs @@ -579,10 +579,10 @@ namespace Swarmops.Frontend string bitIdUri = "bitid://" + hostName + "/Security/Login.aspx/BitIdLogin?x=" + this.bitIdNonce; - if (this.Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) + /* if (this.Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // comment out -- never use insecure BitId { bitIdUri += "&u=1"; - } + }*/ GuidCache.Set(bitIdUri + "-Intent", "Register-" + CurrentUser.Identity.ToString(CultureInfo.InvariantCulture)); // Intent: register BitID diff --git a/Site/Pages/v5/Admin/OrgSettings.aspx.cs b/Site/Pages/v5/Admin/OrgSettings.aspx.cs index 02c67bb1..0f3bcf84 100644 --- a/Site/Pages/v5/Admin/OrgSettings.aspx.cs +++ b/Site/Pages/v5/Admin/OrgSettings.aspx.cs @@ -113,10 +113,10 @@ namespace Swarmops.Frontend.Pages.Admin this.DropTaxAuthority.Items.Add(new ListItem("[DE] Germany", "DE")); this.DropTaxAuthority.Items.Add(new ListItem("[SE] Sweden", "SE")); - this.DropVatReportingPeriod.Items.Clear(); - this.DropVatReportingPeriod.Items.Add(new ListItem("Annually", "12")); - this.DropVatReportingPeriod.Items.Add(new ListItem("Quarterly", "3")); - this.DropVatReportingPeriod.Items.Add(new ListItem("Monthly", "1")); + this.DropVatReportFrequency.Items.Clear(); + this.DropVatReportFrequency.Items.Add(new ListItem("Annually", "12")); + this.DropVatReportFrequency.Items.Add(new ListItem("Quarterly", "3")); + this.DropVatReportFrequency.Items.Add(new ListItem("Monthly", "1")); } [WebMethod]