Normalize cr/lf/tab

This commit is contained in:
Stephan
2017-07-20 11:21:28 +02:00
parent fa6c147a65
commit c76403077f
2466 changed files with 26012 additions and 26010 deletions

View File

@@ -27,15 +27,15 @@ namespace Umbraco.Web.Security.Identity
{
var backofficeIdentity = (UmbracoBackOfficeIdentity)data.Identity;
var userDataString = JsonConvert.SerializeObject(backofficeIdentity.UserData);
var ticket = new FormsAuthenticationTicket(
5,
data.Identity.Name,
data.Properties.IssuedUtc.HasValue
? data.Properties.IssuedUtc.Value.LocalDateTime
data.Properties.IssuedUtc.HasValue
? data.Properties.IssuedUtc.Value.LocalDateTime
: DateTime.Now,
data.Properties.ExpiresUtc.HasValue
? data.Properties.ExpiresUtc.Value.LocalDateTime
data.Properties.ExpiresUtc.HasValue
? data.Properties.ExpiresUtc.Value.LocalDateTime
: DateTime.Now.AddMinutes(_loginTimeoutMinutes),
data.Properties.IsPersistent,
userDataString,
@@ -76,4 +76,4 @@ namespace Umbraco.Web.Security.Identity
return ticket;
}
}
}
}