ensures session id is set on user data on login.

This commit is contained in:
Shannon
2014-05-22 13:17:15 +10:00
parent e04eed41e7
commit aadcdc9c15

View File

@@ -107,7 +107,7 @@ namespace Umbraco.Web.Security
/// <returns>returns the number of seconds until their session times out</returns>
public FormsAuthenticationTicket PerformLogin(IUser user)
{
var ticket = _httpContext.CreateUmbracoAuthTicket(new UserData()
var ticket = _httpContext.CreateUmbracoAuthTicket(new UserData(Guid.NewGuid().ToString("N"))
{
Id = user.Id,
AllowedApplications = user.AllowedSections.ToArray(),