Skip to content

Unable to unlock locked-out member in +03:00 (more than 00:00) time zone #16988

@chetvergok

Description

@chetvergok

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

13.5.0-rc

Bug summary

The 'IsLockedOut' property seems to be has wrong logic.
image

My time zone is '+03:00'. The "MemberDefaultLockoutTimeInMinutes" is 1.
image

Member become unlocked after 3h1m.

This is my debug data:
image

I don't understand why mbr.LockoutEnd.Value.ToLocalTime() >= DateTime.Now get 'true'

Specifics

No response

Steps to reproduce

Work on time zone +01:00 plus
Set 'MemberDefaultLockoutTimeInMinutes' parameter to '1'
Lock out a test user by trying wrong password
Wait 2 minutes
Member is still locked (UmbracoIdentityUser.IsLockedOut)

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions