Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
2016-12-08 16:19:55 +0800
Commit
1da14a179c0442dc3ed30892badd264e5ec59fb3
1 parent
5dcbe087
fix session reset
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/passport/controllers/back.js
apps/passport/controllers/login.js
apps/passport/controllers/back.js
View file @
1da14a1
...
...
@@ -25,7 +25,7 @@ const index = (req, res, next) => {
});
// 清除 session
req
.
session
=
{}
;
req
.
session
.
reset
()
;
service
.
indexPageDataAsync
()
.
then
(
result
=>
{
...
...
apps/passport/controllers/login.js
View file @
1da14a1
...
...
@@ -117,7 +117,7 @@ const local = {
domain
:
config
.
cookieDomain
});
req
.
session
=
{}
;
req
.
session
.
reset
()
;
let
bindMobile
=
_
.
trim
(
req
.
query
.
bindMobile
||
''
);
let
bindArea
=
'+'
+
_
.
trim
(
req
.
query
.
bindArea
||
'86'
);
...
...
Please
register
or
login
to post a comment