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
yyq
7 years ago
Commit
5fb1d1a52ce7bc4bd91c4ba5207cee1dc24ba0fb
1 parent
cb69d946
fix catch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
apps/passport/controllers/back.js
apps/passport/controllers/back.js
View file @
5fb1d1a
...
...
@@ -319,7 +319,7 @@ const resetPwdSuccessPage = (req, res, next) => {
.
catch
(
next
);
};
const
verifyCodeByMobileAPI
=
(
req
,
res
)
=>
{
const
verifyCodeByMobileAPI
=
(
req
,
res
,
next
)
=>
{
let
mobile
=
req
.
body
.
mobile
||
''
;
let
area
=
req
.
body
.
area
||
'86'
;
let
mobileCode
=
req
.
body
.
code
||
''
;
...
...
@@ -343,9 +343,7 @@ const verifyCodeByMobileAPI = (req, res) => {
.
then
(
result
=>
{
res
.
json
(
result
);
})
.
catch
(()
=>
{
res
.
json
(
ERR
);
});
.
catch
(
next
);
};
const
validateExistCodePage
=
(
req
,
res
,
next
)
=>
{
...
...
Please
register
or
login
to post a comment