Authored by htoooth

fix captcha

@@ -99,7 +99,7 @@ router.get('/passport/reg/index', reg.index); @@ -99,7 +99,7 @@ router.get('/passport/reg/index', reg.index);
99 // NOTE: 该接口的存在只是为了兼容前端 ajax 请求 99 // NOTE: 该接口的存在只是为了兼容前端 ajax 请求
100 router.post('/passport/reg/checkmobile', reg.fakeCheckMobile); 100 router.post('/passport/reg/checkmobile', reg.fakeCheckMobile);
101 101
102 -router.post('/passport/reg/piccaptcha', reg.checkCode, reg.picCaptcha); 102 +router.post('/passport/reg/piccaptcha', captcha.requiredAPI, reg.picCaptcha);
103 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha); 103 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha);
104 router.post('/passport/reg/sendBindMsg', reg.checkMobileMiddleware, captcha.requiredAPI, reg.sendBindMsg); 104 router.post('/passport/reg/sendBindMsg', reg.checkMobileMiddleware, captcha.requiredAPI, reg.sendBindMsg);
105 router.post('/passport/reg/mobileregister', reg.checkMobileMiddleware, reg.checkPassword, captcha.requiredAPI, reg.mobileRegister); //eslint-disable-line 105 router.post('/passport/reg/mobileregister', reg.checkMobileMiddleware, reg.checkPassword, captcha.requiredAPI, reg.mobileRegister); //eslint-disable-line