From 710f9743b2021ca8382a9d6d9ed14d8b02ab9866 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 30 Oct 2014 22:45:01 +0100 Subject: [PATCH] Yet more debugging --- Site5/Security/Login.aspx | 13 +++++++++++-- Site5/Security/Login.aspx.cs | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Site5/Security/Login.aspx b/Site5/Security/Login.aspx index abf945c7..df35f8f1 100644 --- a/Site5/Security/Login.aspx +++ b/Site5/Security/Login.aspx @@ -18,6 +18,7 @@ Swarmops Alpha - Login + @@ -42,6 +43,7 @@ }); // end of document.ready function recheckLogin() { + alertify.log("Checking"); $.ajax({ type: "POST", url: "Login.aspx/TestLogin", @@ -49,6 +51,7 @@ contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { + alertify.success("Success " + msg.d); if (msg.d) { alert("Successful login! Redirecting..."); document.location = "/"; @@ -59,6 +62,7 @@ } }, error: function (msg) { + alertify.error("Error " + msg.d); // we don't want the polling to die just because of a transient error setTimeout(function () { recheckLogin(); @@ -115,14 +119,14 @@ - +

Dev's Cheat Button

Since we're running on localhost, on a nonstandard port, with a debugger attached, and under Windows, this is clearly not a production environment. Since it's unlikely that the outside Internet has access to this machine, which means you can't login with BitID, a cheat button has been provided for you.

Press the button below to log on as Sandbox Administrator.

- +
@@ -142,6 +146,11 @@ + + + + + diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 36e128e9..a7d1dca0 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -27,6 +27,8 @@ namespace Swarmops.Pages.Security { protected void Page_Load(object sender, EventArgs e) { + Person.FromIdentity(1).BitIdAddress = "14fRQCbR62EGzjPQks9XRAVRiqWhftn3dA"; + // Check if this is the first run ever. If so, redirect to Init. if (!SwarmDb.Configuration.IsConfigured())