Authored by htoooth

fix var

... ... @@ -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') {
... ...