Bläddra i källkod

【修改】弱密码登录后,修改密码弹层通过存储方式判断;

西昌分支
dyy 6 månader sedan
förälder
incheckning
7575d9eb00
4 ändrade filer med 16 tillägg och 4 borttagningar
  1. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js
  3. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js
  4. +4
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js

+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js Visa fil

@@ -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) {


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-admin.js Visa fil

@@ -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";
});


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/FirstIndexWxLogin.js Visa fil

@@ -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 {


+ 4
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js Visa fil

@@ -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) {


Laddar…
Avbryt
Spara