Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
1
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
7 years ago
Commit
5b299241b8c4ffc5dcbf2eaf02edc7abf12a4e8c
1 parent
d029b594
去除老的_YOHOUID、_YOHOTOKEN先关逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
doraemon/middleware/user.js
doraemon/middleware/user.js
View file @
5b29924
...
...
@@ -4,15 +4,6 @@ const config = global.yoho.config;
module
.
exports
=
()
=>
{
return
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
cookies
.
_YOHOUID
;
const
token
=
req
.
cookies
.
_YOHOTOKEN
;
const
key
=
`
-
_
-!!!
$
{
uid
}
!!!-
_
-
`
;
if
(
md5
(
key
)
===
token
)
{
req
.
user
.
uid
=
uid
;
delete
req
.
cookies
.
_YOHOUID
;
}
// app 内处理
if
(
req
.
yoho
.
isApp
)
{
if
(
req
.
cookies
.
app_uid
&&
...
...
李奇
@yoholq
7 years ago
mentioned in commit
0692529d
Please
register
or
login
to post a comment