diff --git a/YLErpWeb/Controllers/AccountController.cs b/YLErpWeb/Controllers/AccountController.cs index 587d43ce..79c0d3e6 100644 --- a/YLErpWeb/Controllers/AccountController.cs +++ b/YLErpWeb/Controllers/AccountController.cs @@ -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 {