Authored by 陈峰

sessionkey解密时移除乱码

... ... @@ -25,6 +25,7 @@ module.exports = () => {
// 不要使用 === 判断uid的值,如果需要判断使用 ==
let sessionKey = req.cookies._SESSION_KEY && crypto.decrypt('yoho9646abcdefgh', req.cookies._SESSION_KEY);
sessionKey = sessionKey.replace(/\W/g, '');
req.user.uid = {
toString: () => {
return cookie.getUid(req);
... ...
... ... @@ -50,7 +50,7 @@
"uuid": "^2.0.3",
"xml2js": "^0.4.17",
"yoho-express-session": "^2.0.0",
"yoho-node-lib": "=0.2.9",
"yoho-node-lib": "=0.2.10",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...