|
@@ -130,12 +130,6 @@ const checkAPI = (req, res) => { |
|
@@ -130,12 +130,6 @@ const checkAPI = (req, res) => { |
130
|
};
|
130
|
};
|
131
|
|
131
|
|
132
|
const required = (req, res, next) => {
|
132
|
const required = (req, res, next) => {
|
133
|
- req.app.locals.pc = _.merge(req.app.locals.pc, {
|
|
|
134
|
- geetest: {
|
|
|
135
|
- validation: false
|
|
|
136
|
- }
|
|
|
137
|
- });
|
|
|
138
|
-
|
|
|
139
|
let captchaAPI = _.get(req.app.locals.pc, 'geetest.validation', false) ? gtestCaptcha.requiredAPI : requiredAPI;
|
133
|
let captchaAPI = _.get(req.app.locals.pc, 'geetest.validation', false) ? gtestCaptcha.requiredAPI : requiredAPI;
|
140
|
|
134
|
|
141
|
if (req.body.loginType === 'password') {
|
135
|
if (req.body.loginType === 'password') {
|