...
|
...
|
@@ -20,7 +20,7 @@ const auth = require(`${global.middleware}/auth`); |
|
|
const router = express.Router(); // eslint-disable-line
|
|
|
|
|
|
// 兼容老的路由
|
|
|
router.get('/signin.html', login.common.beforeLogin, login.local.loginPage);
|
|
|
router.get('/signin.html', login.common.beforeLogin, captcha.tryGeetest, login.local.loginPage);
|
|
|
router.get('/reg.html', reg.index);
|
|
|
router.get('/logout.html', login.local.logout);
|
|
|
|
...
|
...
|
@@ -34,7 +34,7 @@ router.post('/passport/login/sms/checkuser', login.local.sms.checkUser); // 短 |
|
|
router.post('/passport/login/qrcode/refresh', login.local.qrcode.refresh); // 刷新二维码
|
|
|
router.post('/passport/login/qrcode/check', login.local.qrcode.check); // 验证二维码的状态
|
|
|
|
|
|
router.get('/passport/login', login.common.beforeLogin, login.local.loginPage);
|
|
|
router.get('/passport/login', login.common.beforeLogin, captcha.tryGeetest, login.local.loginPage);
|
|
|
router.post('/passport/login/auth', captcha.passwordRequired, login.local.login);
|
|
|
router.get('/passport/logout', login.local.logout);
|
|
|
|
...
|
...
|
@@ -94,7 +94,7 @@ router.post('/passport/cert/relateMobile', auth, cert.relateMobile); |
|
|
/**
|
|
|
* 注册页面路由
|
|
|
*/
|
|
|
router.get('/passport/reg/index', reg.index);
|
|
|
router.get('/passport/reg/index', captcha.tryGeetest, reg.index);
|
|
|
|
|
|
// NOTE: 该接口的存在只是为了兼容前端 ajax 请求
|
|
|
router.post('/passport/reg/checkmobile', reg.fakeCheckMobile);
|
...
|
...
|
@@ -117,7 +117,7 @@ router.get('/passport/reg/success', reg.success); |
|
|
* 找回密码首页信息
|
|
|
*/
|
|
|
// 找回密码首页
|
|
|
router.get('/passport/back/index', back.index);
|
|
|
router.get('/passport/back/index', captcha.tryGeetest, back.index);
|
|
|
|
|
|
// 验证输入是否正确
|
|
|
router.post('/passport/back/authcode',
|
...
|
...
|
|