Removed duplicate code

This commit is contained in:
Rick Falkvinge
2018-05-05 18:32:36 +02:00
parent c1b3b5d86f
commit cc39f5e799
+1 -13
View File
@@ -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)