Browse Source

登录时 隐藏关键信息:身份证.密码,秘钥

新疆体育高职分支
ndbs 8 months ago
parent
commit
49aa1e4153
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs

+ 5
- 2
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs View File

@@ -57,6 +57,9 @@ namespace Learun.Application.WebApi

#region 内部账户验证
UserEntity userEntity = userIBLL.CheckLogin(loginModel.username, loginModel.password);
userEntity.F_Password = null;
userEntity.F_IdentityCardNo = null;
userEntity.F_Secretkey = null;

#region 写入日志
LogEntity logEntity = new LogEntity();
@@ -114,7 +117,7 @@ namespace Learun.Application.WebApi
baseinfo = res.userInfo,
post = postIBLL.GetListByPostIds(res.userInfo.postIds),
role = roleIBLL.GetListByRoleIds(res.userInfo.roleIds),
pwd= pwd
pwd = pwd
};
return Success(jsonData);
}
@@ -156,7 +159,7 @@ namespace Learun.Application.WebApi
{
//新增新生判断
var stuinfobasic = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(userEntity.F_EnCode);
if (stuinfobasic!=null&&stuinfobasic.Grade!="21")
if (stuinfobasic != null && stuinfobasic.Grade != "21")
{
userEntity.LoginMsg = "只有新生支持身份证方式登录";
return Fail(userEntity.LoginMsg);


Loading…
Cancel
Save