Skip to content

Commit

Permalink
Issue-15712: MemberDefaultLockoutTimeInMinutes fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ideo2 authored and JasonElkin committed Aug 15, 2024
1 parent 7afc2b9 commit 09f16c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void Map(IMember source, MemberIdentityUser target)
target.PasswordConfig = source.PasswordConfiguration;
target.IsApproved = source.IsApproved;
target.SecurityStamp = source.SecurityStamp;
DateTime? lockedOutUntil = source.LastLockoutDate?.AddMinutes(_securitySettings.UserDefaultLockoutTimeInMinutes);
DateTime? lockedOutUntil = source.LastLockoutDate?.AddMinutes(_securitySettings.MemberDefaultLockoutTimeInMinutes);
target.LockoutEnd = source.IsLockedOut ? (lockedOutUntil ?? DateTime.MaxValue).ToUniversalTime() : null;
target.Comments = source.Comments;
target.LastLockoutDateUtc = source.LastLockoutDate == DateTime.MinValue
Expand Down

0 comments on commit 09f16c3

Please sign in to comment.