From 70f619db2c35afd5f2a69e04b7efe4d0dbb2a330 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 20 Apr 2015 14:16:58 +0200 Subject: [PATCH] Another fix for broken legacy data on pilot --- Site5/Master-v5.master.cs | 12 +++++++++++- VERSION | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 173d3905..794391ae 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -32,7 +32,17 @@ namespace Swarmops this._authority = null; FormsAuthentication.SignOut(); - Response.Redirect("/"); + Response.Redirect("/", true); + } + + // Ugly ugly UGLY legacy: Do not allow Sandbox logins on first pilot - it's broken + + if (this._authority.Organization.Identity == 3 && + PilotInstallationIds.IsPilot (PilotInstallationIds.PiratePartySE)) + { + this._authority = null; + FormsAuthentication.SignOut(); + Response.Redirect("/", true); } } diff --git a/VERSION b/VERSION index e95e44b7..3e5787b1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.1.0-alpha07.1 +5.1.0-alpha07.2