Authored by 毕凯

默认不使用极验证

... ... @@ -57,7 +57,7 @@ const check = (req, res, next) => {
}
// 默认取配置总开关来决定是否展示验证码
req.yoho.captchaShow = _.get(req.app.locals.wap, 'close.loginValidation', false);
req.yoho.captchaShow = !_.get(req.app.locals.wap, 'close.loginValidation', false);
co(function* () {
// 如果是账号密码登录,那么需要检查是否登录失败过,登录失败过展示验证码
... ... @@ -94,7 +94,7 @@ const check = (req, res, next) => {
}
// 使用极验证
let useGeetest = !_.get(req.app.locals.wap, 'geetest.validation', false);
let useGeetest = _.get(req.app.locals.wap, 'geetest.validation', false);
// 某次请求极验证调用注册失败,强制使用自有图形验证码
if (req.session.useYohoCaptcha) {
... ...