...
|
...
|
@@ -139,7 +139,7 @@ router.get('/passport/img-check-risk.jpg', captcha.imgCheckRisk); |
|
|
* 注册
|
|
|
*/
|
|
|
router.use('/passport/reg/*', disableBFCahce);
|
|
|
router.post('/passport/reg/verifymobile', reg.sendCodeBusyBoy, reg.verifyMobile);
|
|
|
router.post('/passport/reg/verifymobile', validateCode.check, reg.sendCodeBusyBoy, reg.verifyMobile);
|
|
|
|
|
|
// 新的登录注册
|
|
|
const LoginNew = require('./controllers/login-new');
|
...
|
...
|
@@ -168,7 +168,7 @@ router.get('/passport/sms_login', |
|
|
login.common.wechatQuickLoginCheck,
|
|
|
validateCode.load,
|
|
|
smsLogin.smsLoginPage); // 短信验证码登录
|
|
|
router.post('/passport/sms_login/step1_check', smsLogin.indexCheck);
|
|
|
router.post('/passport/sms_login/step1_check', validateCode.check, smsLogin.indexCheck);
|
|
|
router.get('/passport/sms_login/step1_check', (req, res, next) => {
|
|
|
if (!req.query.callback) {
|
|
|
return res.json({code: 400});
|
...
|
...
|
|