去除老的_YOHOUID、_YOHOTOKEN先关逻辑
Showing
1 changed file
with
0 additions
and
9 deletions
@@ -4,15 +4,6 @@ const config = global.yoho.config; | @@ -4,15 +4,6 @@ const config = global.yoho.config; | ||
4 | 4 | ||
5 | module.exports = () => { | 5 | module.exports = () => { |
6 | return (req, res, next) => { | 6 | return (req, res, next) => { |
7 | - const uid = req.cookies._YOHOUID; | ||
8 | - const token = req.cookies._YOHOTOKEN; | ||
9 | - const key = `-_-!!!${uid}!!!-_-`; | ||
10 | - | ||
11 | - if (md5(key) === token) { | ||
12 | - req.user.uid = uid; | ||
13 | - delete req.cookies._YOHOUID; | ||
14 | - } | ||
15 | - | ||
16 | // app 内处理 | 7 | // app 内处理 |
17 | if (req.yoho.isApp) { | 8 | if (req.yoho.isApp) { |
18 | if (req.cookies.app_uid && | 9 | if (req.cookies.app_uid && |
-
mentioned in commit 0692529d
-
Please register or login to post a comment