Another attempt to fix elusive error on Init

This commit is contained in:
Rick Falkvinge
2017-01-04 19:29:04 +01:00
parent c5a5ce2654
commit d890288c9e
+1 -1
View File
@@ -747,7 +747,7 @@ namespace Swarmops.Frontend.Pages.v5.Public
Person newPerson = Person.Create (name, mail, password, string.Empty, string.Empty, string.Empty,
string.Empty, string.Empty, DateTime.MinValue, PersonGender.Unknown);
newPerson.AddParticipation(Organization.Sandbox, DateTime.MaxValue);
newPerson.AddParticipation(Organization.Sandbox, DateTime.UtcNow.AddYears(100));
Authority firstAuthority = Authority.FromLogin(newPerson, Organization.Sandbox);
FormsAuthentication.SetAuthCookie(firstAuthority.ToEncryptedXml(), true);