Removed duplicate code
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user