U4-9185 lastLockoutDate does not get set when too many invalid password attempts are made

This commit is contained in:
Shannon
2016-11-17 16:46:06 +01:00
parent 3eba4f462f
commit a70f37a53e

View File

@@ -644,6 +644,13 @@ namespace Umbraco.Core.Security
{
anythingChanged = true;
user.IsLockedOut = identityUser.IsLockedOut;
if (user.IsLockedOut)
{
//need to set the last lockout date
user.LastLockoutDate = DateTime.Now;
}
}
if (user.Username != identityUser.UserName && identityUser.UserName.IsNullOrWhiteSpace() == false)
{