Build fix; force SSL on bitId

This commit is contained in:
Rick Falkvinge
2017-10-16 11:54:42 +02:00
parent 098ccd30d8
commit f8376ce654
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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]