Authored by 王水玲

登录

... ... @@ -70,8 +70,12 @@ const local = {
res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800);
// 清除cookie
res.clearCookie('_UID');
res.clearCookie('_TOKEN');
res.clearCookie('_UID', {
domain: 'yohobuy.com'
});
res.clearCookie('_TOKEN', {
domain: 'yohobuy.com'
});
res.render('login', {
loginIndex: true, // 模板中使用JS的标识
... ...
... ... @@ -97,7 +97,7 @@ AlipayStrategy.prototype.authenticate = function(req, options) {
params.sign_type = 'MD5';
}
console.log(paramsToRaw(params))
console.log(paramsToRaw(params));
this.redirect(ALIPAY_URL + '?' + paramsToRaw(params));
}
};
... ...