diff --git a/Site5/Security/ResetPassword.aspx.cs b/Site5/Security/ResetPassword.aspx.cs index 73305279..b61b4c86 100644 --- a/Site5/Security/ResetPassword.aspx.cs +++ b/Site5/Security/ResetPassword.aspx.cs @@ -12,6 +12,7 @@ using NBitcoin.BouncyCastle.Asn1.Ocsp; using Swarmops.Interface.Support; using Swarmops.Logic.Communications; using Swarmops.Logic.Communications.Transmission; +using Swarmops.Logic.Security; using Swarmops.Logic.Structure; using Swarmops.Logic.Support; using Swarmops.Logic.Support.LogEntries; @@ -135,7 +136,7 @@ namespace Swarmops.Pages.Security // Set cookies - FormsAuthentication.SetAuthCookie(resetPerson.Identity.ToString(CultureInfo.InvariantCulture) + "," + lastOrgId.ToString(CultureInfo.InvariantCulture) + ",,AuthPlain", true); + FormsAuthentication.SetAuthCookie(Authority.FromLogin (resetPerson).ToEncryptedXml(), true); DashboardMessage.Set (Resources.Pages.Security.ResetPassword_Success); return true; // temp