diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index 81d78d32..2d66c234 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -90,11 +90,23 @@ namespace Swarmops.Pages.Security // If we're on an Open Ledgers domain, autologin as Open Ledgers - Organization organizationOpenLedgers = Organization.FromOpenLedgersDomain(requestHost); // returns null if doesn't exist + // END-OF-LIFE HARDCODED AS QFE - // DEBUG: Check if this exception throws to find out exactly where the current problem is + Organization organizationOpenLedgers = null; + + if (requestHost == "freiberufler.falkvinge.net") + { + organizationOpenLedgers = Organization.FromIdentity(8); + } + else if (requestHost == "openledgers.pirateacademy.eu") + { + organizationOpenLedgers = Organization.FromIdentity(7); + } + + // The below line threw weird exceptions, solved temporarily by hardcode above + + // Organization organizationOpenLedgers = Organization.FromOpenLedgersDomain(requestHost); // returns null if doesn't exist - throw new NotImplementedException(); if (organizationOpenLedgers != null) {