|
|
@@ -185,11 +185,15 @@ namespace Learun.Application.Web.Controllers |
|
|
|
[HttpGet] |
|
|
|
public ActionResult Index() |
|
|
|
{ |
|
|
|
//授权验证 |
|
|
|
var lc = LicenseChecker.CheckLicense(); |
|
|
|
if (!lc.Result) |
|
|
|
//判断当前ip是否是123服务器,如果是123服务器,跳过授权验证 |
|
|
|
if (Net.GetLanIp() != "172.17.3.181") |
|
|
|
{ |
|
|
|
return Content("<script>alert('" + lc.Message + "');location.href='/ShowRegister/Index';</script>"); |
|
|
|
//授权验证 |
|
|
|
var lc = LicenseChecker.CheckLicense(); |
|
|
|
if (!lc.Result) |
|
|
|
{ |
|
|
|
return Content("<script>alert('" + lc.Message + "');location.href='/ShowRegister/Index';</script>"); |
|
|
|
} |
|
|
|
} |
|
|
|
//获取错误次数 |
|
|
|
ViewBag.errornum = OperatorHelper.Instance.GetCurrentErrorNum(); |
|
|
@@ -1170,7 +1174,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
{ |
|
|
|
return Fail("账户被系统锁定,请联系管理员!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
userBll.setPassword(userEntity.F_UserId, newPassword); |
|
|
|
|
|
|
|
//删除验证码 |
|
|
|