Authored by 郭成尧

Merge branch 'feature/session' of git.yoho.cn:fe/yohobuywap-node into feature/session

... ... @@ -34,7 +34,7 @@ class AuthModel extends global.yoho.BaseModel {
signinAes(area, profile, password, shoppingKey, ip, isSkip, from) {
let param = {
method: 'smart.inner.go',
method: 'sesame.flowering.higher', // sesame.flowering.higher, smart.inner.go
area: area,
profile: profile,
password: aes.aesPwd(password),
... ...
... ... @@ -58,9 +58,13 @@ module.exports = (app) => {
unset: 'destroy',
secret: '82dd7e724f2c6870472c89dfa43cf48d',
name: 'yohobuy_session',
genid() {
return uuid.v4();
},
cookie: {
domain: 'yohobuy.com',
httpOnly: false
httpOnly: false,
maxAge: 3600 * 24 * 7 * 1000
},
store: new MemcachedStore({
hosts: config.memcache.session,
... ...