Port 7.7 - WIP

This commit is contained in:
Stephan
2017-09-12 16:22:16 +02:00
parent 1c96df83cd
commit 96c08f24ee
176 changed files with 5490 additions and 4892 deletions

View File

@@ -63,7 +63,18 @@ namespace Umbraco.Web.Security.Identity
return null;
}
var identity = new UmbracoBackOfficeIdentity(decrypt);
UmbracoBackOfficeIdentity identity;
try
{
identity = new UmbracoBackOfficeIdentity(decrypt);
}
catch (Exception)
{
//if it cannot be created return null, will be due to serialization errors in user data most likely due to corrupt cookies or cookies
//for previous versions of Umbraco
return null;
}
var ticket = new AuthenticationTicket(identity, new AuthenticationProperties
{