Authored by htoooth

fix

... ... @@ -215,6 +215,7 @@ const resetPasswordPage = (req, res, next) => {
};
const verifyCodeByMobilePage = (req, res, next) => {
req.session.type = 'back-step2';
passportHelper.getLeftBannerAsync()
.then(result => {
... ... @@ -281,6 +282,10 @@ const verifyCodeByMobileAPI = (req, res) => {
return res.json(ERR);
}
if (session.type !== 'back-step2') {
return res.json(ERR);
}
service.verifyCodyByMobileAsync(area, mobile, mobileCode)
.then(result => {
res.json(result);
... ...
... ... @@ -156,15 +156,10 @@ router.get('/passport/back/verification',
back.verifyCodeByMobilePage);
// 重新发送短信接口
router.post('/passport/back/sendBackMobile',
captcha.requiredAPI,
back.validateMobileAPI,
back.sendBackMobileAPI);
router.post('/passport/back/sendBackMobile', back.validateMobileAPI, back.sendBackMobileAPI);
// 验证手机验证码接口
router.post('/passport/back/backMobile',
captcha.requiredAPI,
back.verifyCodeByMobileAPI);
router.post('/passport/back/backMobile', back.verifyCodeByMobileAPI);
/**
* 重置密码
... ...