Fixes setting auth cookie during install, removes some try/catch/swallow with some error messaging, converts some String -> string and == false updates.

This commit is contained in:
Shannon
2015-11-26 13:07:22 +01:00
parent 8e50f4968f
commit fd66f08520
9 changed files with 93 additions and 25 deletions

View File

@@ -52,7 +52,7 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(detail => detail.Username, opt => opt.MapFrom(user => user.Username))
.ForMember(detail => detail.Culture, opt => opt.MapFrom(user => user.GetUserCulture(applicationContext.Services.TextService)))
.ForMember(detail => detail.SessionId, opt => opt.MapFrom(user => user.SecurityStamp.IsNullOrWhiteSpace() ? Guid.NewGuid().ToString("N") : user.SecurityStamp));
}
private static int GetIntId(object id)