From 565a3443f95e8b4152bf6267b58372b8ae06f950 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 13 Dec 2016 17:37:18 +0100 Subject: [PATCH] Fix for BitId login --- Site/Master-v5.master | 15 --------------- Site/Security/Login.aspx.cs | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Site/Master-v5.master b/Site/Master-v5.master index fe3c72ee..ff6cabc3 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -14,7 +14,6 @@ - @@ -33,7 +32,6 @@ - @@ -115,19 +113,6 @@ diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index 14070427..ccbd9c45 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -237,7 +237,7 @@ namespace Swarmops.Pages.Security // TODO: Determine last logged-on organization. Right now, log on to Sandbox. GuidCache.Set (credentials.uri + "-LoggedOn", - person.Identity.ToString (CultureInfo.InvariantCulture) + ",1,,BitId 2FA"); + Authority.FromLogin(person, Organization.FromIdentity(person.LastLogonOrganizationId)).ToEncryptedXml()); } } catch (Exception e)