...
|
...
|
@@ -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的标识
|
...
|
...
|
|