Authored by 陈轩

Merge branch 'feature/captcha' into release/5.3

... ... @@ -15,7 +15,6 @@ var multipartMiddleware = multipart();
const uploadApi = require(cRoot + '/upload.js');
const hotfix = require(`${cRoot}/hotfix`);
// const captcha = require(`${cRoot}/captcha`);
// routers
... ...
... ... @@ -218,7 +218,7 @@ const sendCodeToMobileAPI = (req, res, next) => {
}
req.session.backupCaptch.useTime = req.session.backupCaptch.useTime - 1;
} else {
req.session.backupCaptch.useTime = 5;
_.set(req.session, 'backupCaptch.useTime', 5);
}
if (verifyCode) {
... ...
... ... @@ -199,7 +199,6 @@ let codeAction = (req, res, next) => {
res.render('reg/code', {
page: 'code',
title: '注册-验证码',
backUrl: '/?go=1', // eslint-disable-line
headerText: '注册', // 头部信息
isPassportPage: true, // 模板中模块标识
areaCode: area, // 默认的区号
... ...