Debugging getting somewhere

This commit is contained in:
Rick Falkvinge
2014-10-30 23:06:11 +01:00
parent bd8fe1ea03
commit 6289ea7207
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
} else {
setTimeout(function () {
recheckLogin();
}, 500);
}, 1000);
}
},
error: function (msg) {
+11
View File
@@ -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)
{