QFE by hardcoding at EOL

This commit is contained in:
Rick Falkvinge
2022-08-02 15:30:25 +02:00
parent 243107792c
commit cd0602e22a
+15 -3
View File
@@ -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)
{