From 39f6ba0c555d406386a62ea6f7f1532f00b511bc Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 16 Oct 2017 11:55:43 +0200 Subject: [PATCH] Build fix; force SSL on bitId --- Site/Security/Login.aspx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index df650f73..dc403ff6 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -182,10 +182,11 @@ namespace Swarmops.Pages.Security string bitIdUri = "bitid://" + hostName + "/Security/Login.aspx/BitIdLogin?x=" + nonce; + /* -- commented out: NEVER permit BitId over non-SSL if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl) { bitIdUri += "&u=1"; - } + }*/ this.LiteralUri.Text = HttpUtility.UrlEncode (bitIdUri); this.LiteralNonce.Text = nonce;