From 6289ea72071280a95bcc57e9dc4878a70606bd51 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 30 Oct 2014 23:06:11 +0100 Subject: [PATCH] Debugging getting somewhere --- Site5/Security/Login.aspx | 2 +- Site5/Security/Login.aspx.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Site5/Security/Login.aspx b/Site5/Security/Login.aspx index df35f8f1..8e88d65f 100644 --- a/Site5/Security/Login.aspx +++ b/Site5/Security/Login.aspx @@ -58,7 +58,7 @@ } else { setTimeout(function () { recheckLogin(); - }, 500); + }, 1000); } }, error: function (msg) { diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index af71f288..a32caa90 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -174,6 +174,7 @@ namespace Swarmops.Pages.Security try { + Persistence.Key["BitId_Point1"] = DateTime.Now.ToString(); if (this.CurrentUser != null) { if (GuidCache.Get(credentials.uri + "-Intent") as string == "Register") @@ -183,16 +184,24 @@ namespace Swarmops.Pages.Security } } + Persistence.Key["BitId_Point2"] = DateTime.Now.ToString(); + if (GuidCache.Get(credentials.uri + "-Logon") as string == "Unauth") { + Persistence.Key["BitId_Point2a"] = DateTime.Now.ToString(); Person person = Person.FromBitIdAddress(credentials.address); + Persistence.Key["BitId_Point2b"] = DateTime.Now.ToString(); // TODO: Determine last logged-on organization. Right now, log on to Sandbox. GuidCache.Set(credentials.uri + "-LoggedOn", person.Identity.ToString(CultureInfo.InvariantCulture) + ",1,,BitId 2FA"); + Persistence.Key["BitId_Point2c"] = DateTime.Now.ToString(); + } + Persistence.Key["BitId_Point3"] = DateTime.Now.ToString(); + response.StatusCode = 200; response.ContentType = "application/json"; response.Write( @@ -202,6 +211,8 @@ namespace Swarmops.Pages.Security signature = credentials.signature })); response.End(); + + Persistence.Key["BitId_Point4"] = DateTime.Now.ToString(); } catch (Exception e) {