Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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(👎🏻🍜)
8 years ago
Commit
b0f230dfc9cbaa664238b6a104fb9da0e930a18e
1 parent
f9c798dc
彻底清理退出的 UID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
b0f230d
...
...
@@ -94,6 +94,13 @@ const local = {
// res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800);
// 清除cookie
if
(
req
.
session
&&
req
.
session
.
destroy
)
{
req
.
session
.
destroy
();
}
if
(
req
.
session2
&&
req
.
session2
.
reset
)
{
req
.
session2
.
reset
();
}
res
.
clearCookie
(
'_UID'
,
{
domain
:
'yohobuy.com'
});
...
...
@@ -135,6 +142,13 @@ const local = {
// res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800);
// 清除cookie
if
(
req
.
session
&&
req
.
session
.
destroy
)
{
req
.
session
.
destroy
();
}
if
(
req
.
session2
&&
req
.
session2
.
reset
)
{
req
.
session2
.
reset
();
}
res
.
clearCookie
(
'_UID'
,
{
domain
:
'yohobuy.com'
});
...
...
Please
register
or
login
to post a comment