U4-7821 KeepUserLoggedIn with a long umbracoTimeOutInMinutes has logout issues

This commit is contained in:
Shannon
2016-02-02 15:14:47 +01:00
parent c7a2b54d1c
commit 42a7ed6877
4 changed files with 21 additions and 15 deletions

View File

@@ -42,7 +42,7 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(detail => detail.UserId, opt => opt.MapFrom(profile => GetIntId(profile.Id)));
config.CreateMap<IUser, UserData>()
.ConstructUsing((IUser user) => new UserData(Guid.NewGuid().ToString("N"))) //this is the 'session id'
.ConstructUsing((IUser user) => new UserData())
.ForMember(detail => detail.Id, opt => opt.MapFrom(user => user.Id))
.ForMember(detail => detail.AllowedApplications, opt => opt.MapFrom(user => user.AllowedSections))
.ForMember(detail => detail.RealName, opt => opt.MapFrom(user => user.Name))