Showing
1 changed file
with
6 additions
and
5 deletions
@@ -55,15 +55,16 @@ class Auth { | @@ -55,15 +55,16 @@ class Auth { | ||
55 | if (data) { | 55 | if (data) { |
56 | let uidCookie = `${data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`; | 56 | let uidCookie = `${data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`; |
57 | 57 | ||
58 | + req.session._TOKEN = token; | ||
59 | + req.session._LOGIN_UID = uid; | ||
60 | + | ||
58 | res.cookie('_UID', uidCookie, { | 61 | res.cookie('_UID', uidCookie, { |
59 | domain: 'yohobuy.com' | 62 | domain: 'yohobuy.com' |
60 | }); | 63 | }); |
64 | + res.cookie('_TOKEN', token, { | ||
65 | + domain: 'yohobuy.com' | ||
66 | + }); | ||
61 | } | 67 | } |
62 | - req.session._TOKEN = token; | ||
63 | - req.session._LOGIN_UID = uid; | ||
64 | - res.cookie('_TOKEN', token, { | ||
65 | - domain: 'yohobuy.com' | ||
66 | - }); | ||
67 | }); | 68 | }); |
68 | } | 69 | } |
69 | } | 70 | } |
-
Please register or login to post a comment