|
|
@@ -603,7 +603,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
else |
|
|
|
{ |
|
|
|
//记录已登录标记 |
|
|
|
userBll.UpdateHaveLogMark(userEntity.F_UserId); |
|
|
|
//userBll.UpdateHaveLogMark(userEntity.F_UserId); |
|
|
|
//记录ip |
|
|
|
userBll.UpdateIp(GetIP(), userEntity.F_UserId); |
|
|
|
OperatorHelper.Instance.AddLoginUser(userEntity.F_Account, "Learun_ADMS_6.1_PC", null);//写入缓存信息 |
|
|
@@ -1250,7 +1250,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
{ |
|
|
|
return Fail("输入错误!"); |
|
|
|
} |
|
|
|
if (codeType == "firstlogin" && userEntity.F_HaveLogMark == true) |
|
|
|
if (codeType == "firstlogin") |
|
|
|
{ |
|
|
|
return Fail("当前用户非首次登录,请使用账号密码进行登录!"); |
|
|
|
} |
|
|
@@ -1356,10 +1356,10 @@ namespace Learun.Application.Web.Controllers |
|
|
|
{ |
|
|
|
return Fail("账户被系统锁定,请联系管理员!"); |
|
|
|
} |
|
|
|
if (userEntity.F_HaveLogMark == true) |
|
|
|
{ |
|
|
|
return Fail("当前用户非首次登录,请使用账号密码进行登录!"); |
|
|
|
} |
|
|
|
//if (userEntity.F_HaveLogMark == true) |
|
|
|
//{ |
|
|
|
// return Fail("当前用户非首次登录,请使用账号密码进行登录!"); |
|
|
|
//} |
|
|
|
userEntity.LoginOk = true; |
|
|
|
#region 写入日志 |
|
|
|
LogEntity logEntity = new LogEntity(); |
|
|
|