diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs index ba6ac22b..cb2549cc 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs @@ -375,12 +375,17 @@ public class CommonService : ICommonService /// public async Task> ClientUserLogin(UserLoginModel model) { + if (model.UserName.ToLower().Trim() == "admin") + { + return await Task.FromResult(DataResult.Failed("非租户端用户!")); + } var userInfo = await db.Queryable().Filter(null, true) .FirstAsync(x => x.UserCode == model.UserName && x.IsUseSystem == true); if (userInfo == null) { return await Task.FromResult(DataResult.Failed("账号不存在或账号禁用,请检查!")); } + if (userInfo.MD5Password != model.Password) {