From cc39f5e79955547e4735f8de9a02506055fa838d Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 5 May 2018 18:32:36 +0200 Subject: [PATCH] Removed duplicate code --- Site/Master-v5.master.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs index c7dc636f..89e71cf8 100644 --- a/Site/Master-v5.master.cs +++ b/Site/Master-v5.master.cs @@ -27,6 +27,7 @@ namespace Swarmops.Frontend try { this._authority = CommonV5.GetAuthenticationDataAndCulture(HttpContext.Current).Authority; + this._authority.Organization.GetMemberCount(); // will throw if Organization can't be looked up } catch (Exception) { @@ -43,19 +44,6 @@ namespace Swarmops.Frontend // END TEST CODE - // If organization doesn't exist anymore, sign out - - try - { - this._authority.Organization.GetMemberCount(); // will throw if Organization can't be looked up - } - catch (Exception) - { - this._authority = null; - FormsAuthentication.SignOut(); - Response.Redirect("/", true); - } - } protected void Page_Load (object sender, EventArgs e)