...
|
...
|
@@ -112,7 +112,7 @@ const local = { |
|
|
res.render('login', {
|
|
|
width750: true,
|
|
|
loginIndex: true, // 模板中使用JS的标识
|
|
|
useGeetest: _.get(req.app.locals.wap, 'geetest.validation', true), // 使用极验证
|
|
|
useGeetest: !_.get(req.app.locals.wap, 'geetest.validation', false), // 使用极验证
|
|
|
captchaShow: true, // 170306 因为暴力破解密码问题,要求每次都展示验证码
|
|
|
backUrl: 'javascript:history.go(-1)', // eslint-disable-line
|
|
|
showHeaderImg: true, // 控制显示头部图片
|
...
|
...
|
@@ -165,7 +165,7 @@ const local = { |
|
|
width750: true,
|
|
|
backUrl: 'javascript:history.go(-1)', // eslint-disable-line
|
|
|
loginInternational: true, // 模板中使用JS的标识
|
|
|
useGeetest: _.get(req.app.locals.wap, 'geetest.validation', true), // 使用极验证
|
|
|
useGeetest: !_.get(req.app.locals.wap, 'geetest.validation', false), // 使用极验证
|
|
|
captchaShow: true, // 170306 因为暴力破解密码问题,要求每次都展示验证码
|
|
|
isPassportPage: true, // 模板中模块标识
|
|
|
headerText: '登录',
|
...
|
...
|
@@ -184,7 +184,7 @@ const local = { |
|
|
login: (req, res, next) => {
|
|
|
|
|
|
// 使用极验证
|
|
|
let useGeetest = _.get(req.app.locals.wap, 'geetest.validation', true);
|
|
|
let useGeetest = !_.get(req.app.locals.wap, 'geetest.validation', false);
|
|
|
|
|
|
// 关闭极验证的时候使用有货自有验证码
|
|
|
if (!useGeetest) {
|
...
|
...
|
|