...
|
...
|
@@ -179,7 +179,7 @@ module.exports = { |
|
|
if (item.platform_id == Iaccount.WEBSITE ){
|
|
|
userInfo.right[item.path] = true;
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
// allRes.data.forEach(function (data) {
|
|
|
// if (data.platform_id == Iaccount.WEBSITE) {
|
|
|
// userInfo.right[data.path] = true;
|
...
|
...
|
@@ -200,10 +200,8 @@ module.exports = { |
|
|
userInfo.passwordMsg = '密码已过期,请尽快修改';
|
|
|
}
|
|
|
console.log("enter getResourceByPid, passwordMsg: " + userInfo.passwordMsg);
|
|
|
console.log(req.session.user);
|
|
|
req.session.user = userInfo;
|
|
|
console.log("===================")
|
|
|
console.log(cookie);
|
|
|
console.log("===================")
|
|
|
if (cookie && cookie.length > 0) {
|
|
|
req.session.gray = cookie[0];
|
|
|
result = { code: 200, message: "登录成功" ,data:req.session.user,pwdComplexRate :IloginRes.data.pwdComplexRate};
|
...
|
...
|
|