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