|
|
@@ -90,7 +90,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); |
|
|
|
if (application != null) |
|
|
|
{ |
|
|
|
if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) |
|
|
|
if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) |
|
|
|
{ |
|
|
|
OperatorHelper.Instance.EmptyCurrent(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); |
|
|
|
return SuccessString("true"); |
|
|
@@ -132,7 +132,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); |
|
|
|
if (application != null) |
|
|
|
{ |
|
|
|
if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) |
|
|
|
if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) |
|
|
|
{ |
|
|
|
OperatorResult res = OperatorHelper.Instance.IsOnLine(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); |
|
|
|
if (res.stateCode == 1) |
|
|
@@ -182,7 +182,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); |
|
|
|
if (application != null) |
|
|
|
{ |
|
|
|
if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) |
|
|
|
if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) |
|
|
|
{ |
|
|
|
OperatorResult res = OperatorHelper.Instance.IsOnLine(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); |
|
|
|
if (res.stateCode == 1) |
|
|
|