feat(account): 禁用账户禁止限制登录
This commit is contained in:
@@ -595,6 +595,10 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
return Content("找不到系统用户:" + userId);
|
||||
}
|
||||
if (user.State != (int)UserState.Enabled)
|
||||
{
|
||||
return Content("系统用户:" + userId + "处于禁用状态");
|
||||
}
|
||||
user.UserToken = userToken;
|
||||
db.SystemUserLoginfo.Add(new SystemUserLoginfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user