Authored by mali

bug

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