Showing
1 changed file
with
3 additions
and
1 deletions
@@ -76,9 +76,11 @@ const Auth = { | @@ -76,9 +76,11 @@ const Auth = { | ||
76 | return Auth.profile(uid).then((userInfo) => { | 76 | return Auth.profile(uid).then((userInfo) => { |
77 | let token = sign.makeToken(uid); | 77 | let token = sign.makeToken(uid); |
78 | let data = userInfo.data; | 78 | let data = userInfo.data; |
79 | + let encryptionUid = aes.encryptionUid(data.uid); | ||
80 | + | ||
79 | 81 | ||
80 | if (data) { | 82 | if (data) { |
81 | - let uidCookie = `{data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`; | 83 | + let uidCookie = `{data.profile_name}::${encryptionUid}::${data.vip_info.title}::${token}`; |
82 | let isStudent = data.vip_info.is_student || 0; | 84 | let isStudent = data.vip_info.is_student || 0; |
83 | 85 | ||
84 | req.session._TOKEN = token; | 86 | req.session._TOKEN = token; |
-
Please register or login to post a comment