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
Plain Diff
Browse Files
Authored by
郭成尧
2017-10-25 15:02:53 +0800
Commit
a62c248cc4e2b151e5cae4aefacec6a583226d3e
2 parents
8f400ffb
632ec149
Merge branch 'feature/session' of git.yoho.cn:fe/yohobuywap-node into feature/session
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
apps/passport/models/auth-helper.js
doraemon/middleware/yoho-session.js
apps/passport/models/auth-helper.js
View file @
a62c248
...
...
@@ -34,7 +34,7 @@ class AuthModel extends global.yoho.BaseModel {
signinAes
(
area
,
profile
,
password
,
shoppingKey
,
ip
,
isSkip
,
from
)
{
let
param
=
{
method
:
's
mart.inner.go'
,
method
:
's
esame.flowering.higher'
,
// sesame.flowering.higher, smart.inner.go
area
:
area
,
profile
:
profile
,
password
:
aes
.
aesPwd
(
password
),
...
...
doraemon/middleware/yoho-session.js
View file @
a62c248
...
...
@@ -58,9 +58,13 @@ module.exports = (app) => {
unset
:
'destroy'
,
secret
:
'82dd7e724f2c6870472c89dfa43cf48d'
,
name
:
'yohobuy_session'
,
genid
()
{
return
uuid
.
v4
();
},
cookie
:
{
domain
:
'yohobuy.com'
,
httpOnly
:
false
httpOnly
:
false
,
maxAge
:
3600
*
24
*
7
*
1000
},
store
:
new
MemcachedStore
({
hosts
:
config
.
memcache
.
session
,
...
...
Please
register
or
login
to post a comment