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
ac9bd042cf4e0fea30298ac817f00255b964eb98
1 parent
f1fcc478
remove lib
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
apps/passport/controllers/captcha.js
apps/passport/controllers/login.js
apps/passport/controllers/captcha.js
View file @
ac9bd04
...
...
@@ -130,12 +130,6 @@ const checkAPI = (req, res) => {
};
const
required
=
(
req
,
res
,
next
)
=>
{
req
.
app
.
locals
.
pc
=
_
.
merge
(
req
.
app
.
locals
.
pc
,
{
geetest
:
{
validation
:
false
}
});
let
captchaAPI
=
_
.
get
(
req
.
app
.
locals
.
pc
,
'geetest.validation'
,
false
)
?
gtestCaptcha
.
requiredAPI
:
requiredAPI
;
if
(
req
.
body
.
loginType
===
'password'
)
{
...
...
apps/passport/controllers/login.js
View file @
ac9bd04
...
...
@@ -110,13 +110,6 @@ const common = {
const
local
=
{
loginPage
:
(
req
,
res
)
=>
{
// 测试用
req
.
app
.
locals
.
pc
=
_
.
merge
(
req
.
app
.
locals
.
pc
,
{
geetest
:
{
validation
:
false
}
});
// 清除cookie
res
.
clearCookie
(
'_UID'
,
{
domain
:
config
.
cookieDomain
...
...
Please
register
or
login
to post a comment