Authored by mali

bug

@@ -87,6 +87,9 @@ module.exports = { @@ -87,6 +87,9 @@ module.exports = {
87 } 87 }
88 }, 88 },
89 login: function (req, callback, common) { 89 login: function (req, callback, common) {
  90 +
  91 + console.log("begin enter login function --------------------------------------------------------------------------------------" + req);
  92 + console.log(req.session);
90 var userInfo = {},result = { code: 400, message: "登录失败" },isSuccess=false; 93 var userInfo = {},result = { code: 400, message: "登录失败" },isSuccess=false;
91 94
92 var user = req.body.user||req.query.user; 95 var user = req.body.user||req.query.user;
@@ -177,7 +180,7 @@ module.exports = { @@ -177,7 +180,7 @@ module.exports = {
177 userInfo.passwordMsg = '密码已过期,请尽快修改'; 180 userInfo.passwordMsg = '密码已过期,请尽快修改';
178 } 181 }
179 console.log("enter getResourceByPid, passwordMsg: " + userInfo.passwordMsg); 182 console.log("enter getResourceByPid, passwordMsg: " + userInfo.passwordMsg);
180 - 183 + console.log(req.session.user);
181 req.session.user = userInfo; 184 req.session.user = userInfo;
182 if (cookie && cookie.length > 0) { 185 if (cookie && cookie.length > 0) {
183 req.session.gray = cookie[0]; 186 req.session.gray = cookie[0];