From ca9d846be0a3f0282a894e8e0707cace827b6fa0 Mon Sep 17 00:00:00 2001 From: Falkvinge Date: Sun, 20 Nov 2016 18:59:26 +0100 Subject: [PATCH] Temp Sandbox debug --- Site/Security/Login.aspx.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index 3d3fd70c..4122916b 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -82,6 +82,10 @@ namespace Swarmops.Pages.Security PilotInstallationIds.IsPilot (PilotInstallationIds.DevelopmentSandbox) && Request.QueryString["SuppressAutologin"] != "true") { + // HACK TEMPORARY FOR DEBUGGING SANDBOX + // DELETE THE FOLLOWING LINE + Person.FromIdentity(1).SetPassword("sandbox"); + DashboardMessage.Set ("

You have been logged on as Sandbox Administrator to the Swarmops Development Sandbox.


This machine runs the latest development build, so you may run into diagnostic code and half-finished features. All data here is bogus test data and is reset every night.


In other words, welcome, and play away!

"); FormsAuthentication.SetAuthCookie (Authority.FromLogin (Person.FromIdentity (1), Organization.Sandbox).ToEncryptedXml(), true); Response.Redirect ("/"); @@ -113,7 +117,7 @@ namespace Swarmops.Pages.Security } } - // TODO: Same thing for Pound deployments + // TODO: Same thing for Pound/HAProxy deployments // Rewrite if applicable