Skip to content

Is there any way to lock out a user? Could this be added? #58966

@SoftCircuits

Description

@SoftCircuits

I need a way to lock out a user. Not from too many login attempts. But because I want to deny them access to the site without deleting their account.

I've found you can set LockoutEnd to a date and time in the future, and that user will not be able to log in. However, by default, users don't need to log in every time they go to the site. The site remembers their login for something like 30 days. So they would be able to continue using the site for up to 30 days!

Is there any way to lock them out immediately?

Is there any way this sort of feature could be baked in? Does this require me to write my own middleware? If so, has anyone done this already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIncludes: Identity and providersenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions