...
|
...
|
@@ -9,6 +9,8 @@ const express = require('express'); |
|
|
const router = express.Router(); // eslint-disable-line
|
|
|
const cRoot = './controllers';
|
|
|
const captcha = require('../passport/controllers/captcha');
|
|
|
const csrf = require('../../doraemon/middleware/csrf')();
|
|
|
|
|
|
|
|
|
const newUserController = require(`${cRoot}/new-user`);
|
|
|
|
...
|
...
|
@@ -161,7 +163,7 @@ router.get('/orders/refundreason', ordersController.refundReason); |
|
|
|
|
|
|
|
|
// router.get('/coupons', CouponsController.index);
|
|
|
router.get('/user', tabsMiddleware.getCommonHeader, UserController.index);
|
|
|
router.get('/user', csrf, tabsMiddleware.getCommonHeader, UserController.index);
|
|
|
|
|
|
router.post('/user/edituserinfo', UserController.editUserInfo);
|
|
|
|
...
|
...
|
@@ -202,7 +204,7 @@ router.get('/bind/douban', bindController.douban.login); |
|
|
router.get('/bind/renren', bindController.renren.login);
|
|
|
router.get('/bind/renren/callback', bindController.renren.callback);
|
|
|
|
|
|
router.post('/cancelbind/:type', bindController.cancelBind);
|
|
|
router.post('/cancelbind/:type', csrf, bindController.cancelBind);
|
|
|
|
|
|
// 账号安全
|
|
|
router.get('/account', tabsMiddleware.getCommonHeader, AccountController.index);
|
...
|
...
|
|