...
|
...
|
@@ -13,6 +13,8 @@ const back = require(cRoot + '/back'); |
|
|
const bind = require(cRoot + '/bind');
|
|
|
const reg = require(cRoot + '/reg');
|
|
|
|
|
|
const disableBFCahce = require('../../doraemon/middleware/disable-BFCache');
|
|
|
|
|
|
const smsLogin = require(cRoot + '/sms');
|
|
|
const update = require(cRoot + '/update');
|
|
|
const agreement = require(cRoot + '/app-agreement');
|
...
|
...
|
@@ -21,7 +23,7 @@ const router = express.Router(); // eslint-disable-line |
|
|
|
|
|
// 兼容老的路由
|
|
|
router.get('/signin.html', login.common.beforeLogin, login.local.loginPage);
|
|
|
router.get('/reg.html', reg.index);
|
|
|
router.get('/reg.html', disableBFCahce, reg.index);
|
|
|
router.get('/login.html', login.common.beforeLogin, login.local.international);
|
|
|
router.get('/phoneback.html', back.indexMobilePage);
|
|
|
router.get('/emailback.html', back.indexEmailPage);
|
...
|
...
|
@@ -85,6 +87,7 @@ router.post('/passport/bind/changeMobile', bind.changeMobile); |
|
|
/**
|
|
|
* 注册
|
|
|
*/
|
|
|
router.use('/passport/reg/*', disableBFCahce);
|
|
|
router.get('/passport/reg/index', reg.index);
|
|
|
router.get('/passport/reg/captcha.png', reg.genCaptcha);
|
|
|
router.post('/passport/reg/verifymobile', reg.sendCodeBusyBoy, reg.verifyMobile);
|
...
|
...
|
|