feat(account): 禁用账户禁止限制登录

This commit is contained in:
shangzhongyuan
2026-03-27 14:54:18 +08:00
parent 2975bbde9c
commit 34e0e4f8bf
@@ -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
{