Authored by htoooth

fix captcha

@@ -99,10 +99,19 @@ router.get('/passport/reg/index', reg.index); @@ -99,10 +99,19 @@ 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', captcha.requiredAPI, reg.picCaptcha);  
103 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha); 102 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha);
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 103 +
  104 +router.post('/passport/reg/sendBindMsg',
  105 + captcha.requiredAPI,
  106 + reg.checkMobileMiddleware,
  107 + reg.sendBindMsg);
  108 +
  109 +router.post('/passport/reg/mobileregister',
  110 + captcha.requiredAPI,
  111 + reg.checkMobileMiddleware,
  112 + reg.checkPassword,
  113 + reg.mobileRegister);
  114 +
106 router.get('/passport/reg/success', reg.success); 115 router.get('/passport/reg/success', reg.success);
107 116
108 /** 117 /**