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
8 years ago
Commit
2f9fdfd1d35eb1dde67fb279e6676c10cbd9d197
1 parent
e7e4e7e8
fix var
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
apps/passport/controllers/captcha.js
apps/passport/controllers/captcha.js
View file @
2f9fdfd
...
...
@@ -130,6 +130,12 @@ const checkAPI = (req, res) => {
};
const
required
=
(
req
,
res
,
next
)
=>
{
req
.
app
.
locals
.
pc
=
_
.
merge
(
req
.
app
.
locals
.
pc
,
{
geetest
:
{
validation
:
true
}
});
let
captchaAPI
=
_
.
get
(
req
.
app
.
locals
.
pc
,
'geetest.validation'
,
false
)
?
gtestCaptcha
.
requiredAPI
:
requiredAPI
;
if
(
req
.
body
.
loginType
===
'password'
)
{
...
...
Please
register
or
login
to post a comment