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
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
2016-07-27 16:31:41 +0800
Commit
be84296d4857c1bfa1bb5728e4e9a60d7985184c
1 parent
8255a977
获取到 UID 后删除cookie中的UID,防止有人从 cookie 读取
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
doraemon/middleware/user.js
doraemon/middleware/user.js
View file @
be84296
...
...
@@ -8,6 +8,7 @@ module.exports = () => {
if
(
md5
(
key
)
===
token
)
{
req
.
user
.
uid
=
uid
;
delete
req
.
cookies
.
_YOHOUID
;
}
next
();
...
...
Please
register
or
login
to post a comment