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
陈轩
2016-12-15 14:32:39 +0800
Commit
3a147707470c7177ff169add471fa76ddd80ced7
2 parents
10407aa1
ca8c5bdf
Merge branch 'feature/captcha' into release/5.3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
3 deletions
apps/api/router.js
apps/passport/controllers/back.js
apps/passport/controllers/reg.js
apps/api/router.js
View file @
3a14770
...
...
@@ -15,7 +15,6 @@ var multipartMiddleware = multipart();
const
uploadApi
=
require
(
cRoot
+
'/upload.js'
);
const
hotfix
=
require
(
`
$
{
cRoot
}
/hotfix`
)
;
// const captcha = require(`${cRoot}/captcha`);
// routers
...
...
apps/passport/controllers/back.js
View file @
3a14770
...
...
@@ -218,7 +218,7 @@ const sendCodeToMobileAPI = (req, res, next) => {
}
req
.
session
.
backupCaptch
.
useTime
=
req
.
session
.
backupCaptch
.
useTime
-
1
;
}
else
{
req
.
session
.
backupCaptch
.
useTime
=
5
;
_
.
set
(
req
.
session
,
'backupCaptch.useTime'
,
5
)
;
}
if
(
verifyCode
)
{
...
...
apps/passport/controllers/reg.js
View file @
3a14770
...
...
@@ -199,7 +199,6 @@ let codeAction = (req, res, next) => {
res
.
render
(
'reg/code'
,
{
page
:
'code'
,
title
:
'注册-验证码'
,
backUrl
:
'/?go=1'
,
// eslint-disable-line
headerText
:
'注册'
,
// 头部信息
isPassportPage
:
true
,
// 模板中模块标识
areaCode
:
area
,
// 默认的区号
...
...
Please
register
or
login
to post a comment