adds notes

This commit is contained in:
Shannon
2021-02-23 11:28:42 +11:00
parent 27d94f1ca6
commit 2bb8b02233

View File

@@ -171,10 +171,17 @@ namespace Umbraco.Web.Security
// change a password or add an external login to your account.
OnValidateIdentity = context =>
{
// capture the current ticket for the request
var identity = context.Identity;
return SecurityStampValidator
.OnValidateIdentity<BackOfficeUserManager, BackOfficeIdentityUser, int>(
// This will re-verify the security stamp at a throttled 30 mins
// (the standard/default set in aspnet identity).
// This ensures that if the security stamp has changed - i.e. passwords,
// external logins, or other security profile data changed behind the
// scenes while being logged in, that they are logged out and have
// to re-verify their identity.
TimeSpan.FromMinutes(30),
async (manager, user) =>
{