...
|
...
|
@@ -80,6 +80,7 @@ const Auth = { |
|
|
|
|
|
if (data) {
|
|
|
let uidCookie = `{data.profile_name}::${encryptionUid}::${data.vip_info.title}::${token}`;
|
|
|
let isStudent = data.vip_info.is_student || 0;
|
|
|
|
|
|
req.session._TOKEN = token;
|
|
|
req.session._LOGIN_UID = uid;
|
...
|
...
|
@@ -87,6 +88,9 @@ const Auth = { |
|
|
res.cookie('_UID', uidCookie, {
|
|
|
domain: 'yohobuy.com'
|
|
|
});
|
|
|
res.cookie('isStudent', isStudent, {
|
|
|
domain: 'yohobuy.com'
|
|
|
});
|
|
|
}
|
|
|
req.session._TOKEN = token; // esline-disable-line
|
|
|
req.session._LOGIN_UID = uid; // esline-disable-line
|
...
|
...
|
|