From cd0602e22a8fb9c5c72de173ed26e87ad7bbbf76 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 2 Aug 2022 15:30:25 +0200 Subject: [PATCH] QFE by hardcoding at EOL --- Site/Security/Login.aspx.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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) {