diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js index 3b210bfd1..e3a636f8b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js @@ -198,7 +198,7 @@ var bootstrap = function ($, learun) { // area: ['500px', '300px'] // }); //} - if (pwd == "true") { + if (pwd == "true" || sessionStorage.getItem("pase_29d") == "hm") { top.layer.open({ id: 'pwdform', title: '密码修改', @@ -215,6 +215,8 @@ var bootstrap = function ($, learun) { }, yes: function (index, layero) { var flag = top['layer_pwdform'].acceptClick(function () { + //删除seesion + sessionStorage.removeItem("pase_29d"); top.location.href = "/Login/Index"; }); if (!!flag) { @@ -226,7 +228,7 @@ var bootstrap = function ($, learun) { } }); } - if (pwd == "first") { + if (pwd == "first" || sessionStorage.getItem("pase_29d") == "fs") { top.layer.open({ id: 'pwdform', title: '密码修改', @@ -243,6 +245,8 @@ var bootstrap = function ($, learun) { }, yes: function (index, layero) { var flag = top['layer_pwdform'].acceptClick(function () { + //删除seesion + sessionStorage.removeItem("pase_29d"); top.location.href = "/Login/Index"; }); if (!!flag) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js index 2169b35a1..3a860bdcb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js @@ -101,6 +101,8 @@ var loaddfimg; if (ACIp2 != null && ACIp2 != "") { sendToAc(ACIp2, 'logout', Ip, loginInfo.enCode, ''); } + //清空session + sessionStorage.clear(); learun.httpAsyncPost($.rootUrl + '/Login/OutLogin', {}, function (data) { window.location.href = $.rootUrl + "/Login/Index"; }); @@ -111,6 +113,8 @@ var loaddfimg; learun.layerConfirm("注:您确定要清空全部后台缓存数据吗?", function (r) { if (r) { learun.loading(true, '清理缓存数据中...'); + //清空session + sessionStorage.clear(); learun.httpAsyncPost($.rootUrl + '/Home/ClearRedis', {}, function (data) { window.location.href = $.rootUrl + "/Login/Index"; }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js index 8e7c830d3..3e9a0eb51 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js @@ -153,6 +153,8 @@ window.location.href = "/SSOSystem/Index"; } else { if (res.data.pwd == true) { + //存储seesion + sessionStorage.setItem("pase_29d", "fs"); window.location.href = "/Home/Index?pwd=first"; } else { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js index 0d5ebb737..ef91baea4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js @@ -163,13 +163,15 @@ window.location.href = "/SSOSystem/Index"; } else { if (res.data.pwd == true) { + //存储seesion + sessionStorage.setItem("pase_29d", "hm"); window.location.href = "/Home/Index?pwd=true"; } else if (res.data.pwdtip == true) { window.location.href = "/Home/Index?pwdtip=true"; } - else + else { window.location.href = "/Home/Index"; - //window.location.href = "/Home/Index"; + } } } else if (res.code == 400) {