...
|
...
|
@@ -111,6 +111,7 @@ const local = { |
|
|
res.render('login', {
|
|
|
width750: true,
|
|
|
loginIndex: true, // 模板中使用JS的标识
|
|
|
useGeetest: _.get(req.app.locals.wap, 'geetest.validation', true), // 使用极验证
|
|
|
|
|
|
// captchaShow: _.get(req.session, 'login.errorCount') <= 0,
|
|
|
captchaShow: true, // 170306 因为暴力破解密码问题,要求每次都展示验证码
|
...
|
...
|
@@ -169,6 +170,7 @@ const local = { |
|
|
// 返回的URL链接
|
|
|
backUrl: 'javascript:history.go(-1)', // eslint-disable-line
|
|
|
loginInternational: true, // 模板中使用JS的标识
|
|
|
useGeetest: _.get(req.app.locals.wap, 'geetest.validation', true), // 使用极验证
|
|
|
|
|
|
// captchaShow: _.get(req.session, 'login.errorCount') <= 0,
|
|
|
captchaShow: true, // 170306 因为暴力破解密码问题,要求每次都展示验证码
|
...
|
...
|
@@ -192,7 +194,11 @@ const local = { |
|
|
_.set(req.session, 'login.errorCount', 3);
|
|
|
}
|
|
|
|
|
|
if (count <= 0) {
|
|
|
// 使用极验证
|
|
|
let useGeetest = _.get(req.app.locals.wap, 'geetest.validation', true);
|
|
|
|
|
|
// 有货自有验证码
|
|
|
if (count <= 0 && !useGeetest) {
|
|
|
let captchaInput = req.body.captcha;
|
|
|
let captchaCode = _.get(req.session, 'captcha');
|
|
|
let testCode = req.body.yohobuy;
|
...
|
...
|
|