...
|
...
|
@@ -14,7 +14,7 @@ const QQStrategy = require('passport-qq').Strategy; |
|
|
const AlipayStrategy = require('./models/passport-alipay').Strategy;
|
|
|
|
|
|
const _ = require('lodash');
|
|
|
const md5 = require('md5');
|
|
|
// const md5 = require('md5');
|
|
|
|
|
|
const config = global.yoho.config;
|
|
|
const logger = global.yoho.logger;
|
...
|
...
|
@@ -51,11 +51,11 @@ passport.use(new LocalStrategy({ |
|
|
return done('登录账号格式错误', null);
|
|
|
}
|
|
|
|
|
|
let expire = req.cookies['LE' + md5('_LOGIN_EXPIRE')];
|
|
|
// let expire = req.cookies['LE' + md5('_LOGIN_EXPIRE')];
|
|
|
|
|
|
if (_.isEmpty(expire) || expire < (new Date()).getTime() / 1000) {
|
|
|
return done('页面停留时间过长,请刷新页面', null);
|
|
|
}
|
|
|
// if (_.isEmpty(expire) || expire < (new Date()).getTime() / 1000) {
|
|
|
// return done('页面停留时间过长,请刷新页面', null);
|
|
|
// }
|
|
|
|
|
|
let shoppingKey = cookie.getShoppingKey(req);
|
|
|
|
...
|
...
|
|