Bladeren bron

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

西昌分支
dyy 6 maanden geleden
bovenliggende
commit
7575d9eb00
4 gewijzigde bestanden met toevoegingen van 16 en 4 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan