diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index 118263b1..81d78d32 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -88,14 +88,14 @@ namespace Swarmops.Pages.Security Response.Redirect (HttpContext.Current.Request ["ReturnUrl"]); // Returns to the requested URL with auth cookie set } - // DEBUG: Check if this exception throws to find out exactly where the current problem is - - throw new NotImplementedException(); - // If we're on an Open Ledgers domain, autologin as Open Ledgers Organization organizationOpenLedgers = Organization.FromOpenLedgersDomain(requestHost); // returns null if doesn't exist + // DEBUG: Check if this exception throws to find out exactly where the current problem is + + throw new NotImplementedException(); + if (organizationOpenLedgers != null) { DashboardMessage.Set (String.Format(Resources.Pages.Security.Login_AsOpenLedgers, organizationOpenLedgers.Name));