...
|
...
|
@@ -35,7 +35,16 @@ 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.post('/passport/login/auth', captcha.requiredAPI, login.local.login);
|
|
|
router.post('/passport/login/auth',
|
|
|
(req, res, next) => {
|
|
|
if (req.body.loginType === 'password') {
|
|
|
return captcha.requiredAPI(req, res, next);
|
|
|
} else {
|
|
|
return next();
|
|
|
}
|
|
|
},
|
|
|
login.local.login
|
|
|
);
|
|
|
router.get('/passport/logout', login.local.logout);
|
|
|
|
|
|
// 微信登录
|
...
|
...
|
|