Showing
2 changed files
with
7 additions
and
3 deletions
@@ -70,8 +70,12 @@ const local = { | @@ -70,8 +70,12 @@ const local = { | ||
70 | res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800); | 70 | res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800); |
71 | 71 | ||
72 | // 清除cookie | 72 | // 清除cookie |
73 | - res.clearCookie('_UID'); | ||
74 | - res.clearCookie('_TOKEN'); | 73 | + res.clearCookie('_UID', { |
74 | + domain: 'yohobuy.com' | ||
75 | + }); | ||
76 | + res.clearCookie('_TOKEN', { | ||
77 | + domain: 'yohobuy.com' | ||
78 | + }); | ||
75 | 79 | ||
76 | res.render('login', { | 80 | res.render('login', { |
77 | loginIndex: true, // 模板中使用JS的标识 | 81 | loginIndex: true, // 模板中使用JS的标识 |
@@ -97,7 +97,7 @@ AlipayStrategy.prototype.authenticate = function(req, options) { | @@ -97,7 +97,7 @@ AlipayStrategy.prototype.authenticate = function(req, options) { | ||
97 | params.sign_type = 'MD5'; | 97 | params.sign_type = 'MD5'; |
98 | } | 98 | } |
99 | 99 | ||
100 | - console.log(paramsToRaw(params)) | 100 | + console.log(paramsToRaw(params)); |
101 | this.redirect(ALIPAY_URL + '?' + paramsToRaw(params)); | 101 | this.redirect(ALIPAY_URL + '?' + paramsToRaw(params)); |
102 | } | 102 | } |
103 | }; | 103 | }; |
-
Please register or login to post a comment