how can I force a certain user to log in again asp.net identity

蓝咒 提交于 2019-12-11 17:10:04

问题


I have a console job running where it will turn the islockedout column to 1 in the [ASPNETDB].[dbo].[aspnet_membership] table if a user hasn't logged in to the system for 45 days or more.

So when isLockedOut column is set to 1, the user won't be able to log in after that. But the problem I have is that when the user originally logged in if they ahd checked the remember me box this allows them to pass the log in page even if islockedout column is set to 1.

Is there a way I can prevent them from logging in?

The biggest problem is I don't have any code to look at .. this is an old web forms page and on there it has this and nothing in code behind...

来源:https://stackoverflow.com/questions/53752463/how-can-i-force-a-certain-user-to-log-in-again-asp-net-identity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!