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
郭成尧
7 years ago
Commit
4f99f709c76568e2fa7338a4678c9ecffb75c8bb
1 parent
ea1b9e28
udid-reg-clearcookie
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app.js
apps/passport/router.js
app.js
View file @
4f99f70
...
...
@@ -116,8 +116,8 @@ app.use((req, res, next) => {
req
.
isApmReport
=
app
.
locals
.
wap
.
open
&&
app
.
locals
.
wap
.
open
.
bughd
;
// 把错误上报的开关绑定到上下文,node-lib 库要使用
// 独立的 UDID
if
(
!
req
.
cookies
.
UDID
)
{
res
.
cookie
(
'UDID'
,
uuid
.
v4
(),
{
if
(
!
req
.
cookies
.
_UDID
)
{
res
.
cookie
(
'_UDID'
,
uuid
.
v4
(),
{
domain
:
'yohobuy.com'
,
expires
:
new
Date
(
Date
.
now
()
+
365
*
24
*
60
*
60
*
1000
)
});
...
...
apps/passport/router.js
View file @
4f99f70
...
...
@@ -139,6 +139,7 @@ router.get('/passport/international',
loginNew
.
international
);
// 国际账号登录
router
.
get
(
'/passport/reg/index'
,
validateCode
.
load
,
login
.
common
.
clearCookie
,
reg
.
regPage
);
// 注册页面
router
.
post
(
'/passport/register-new'
,
reg
.
sendCodeBusyBoy
,
...
...
Please
register
or
login
to post a comment