...
|
...
|
@@ -126,43 +126,45 @@ const LoginNew = require('./controllers/login-new'); |
|
|
const loginNew = new LoginNew();
|
|
|
|
|
|
router.get('/passport/login',
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
login.common.beforeLogin,
|
|
|
login.common.clearCookie,
|
|
|
login.loginShowCaptchaByIp,
|
|
|
loginNew.loginPage); // 普通登录
|
|
|
router.get('/passport/international',
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
login.common.beforeLogin,
|
|
|
login.common.clearCookie,
|
|
|
login.loginShowCaptchaByIp,
|
|
|
loginNew.international); // 国际账号登录
|
|
|
router.get('/passport/reg/index',
|
|
|
validateCode.load,
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
reg.regPage); // 注册页面
|
|
|
router.post('/passport/register-new',
|
|
|
reg.sendCodeBusyBoy,
|
|
|
reg.register); // 注册请求
|
|
|
router.get('/passport/sms_login',
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
smsLogin.smsLoginPage); // 短信验证码登录
|
|
|
|
|
|
// 兼容老的路由
|
|
|
router.get('/signin.html',
|
|
|
login.common.clearCookie,
|
|
|
login.common.thirdLogin,
|
|
|
login.common.weixinCheck,
|
|
|
validateCode.load,
|
|
|
login.common.beforeLogin,
|
|
|
login.common.clearCookie,
|
|
|
smsLogin.smsLoginPage); // 短信验证码登录
|
|
|
router.get('/reg.html',
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
reg.regPage); // 注册页面
|
|
|
router.get('/login.html',
|
|
|
login.common.clearCookie,
|
|
|
validateCode.load,
|
|
|
login.common.beforeLogin,
|
|
|
login.common.clearCookie,
|
|
|
login.loginShowCaptchaByIp,
|
|
|
loginNew.international); // 国际账号登录
|
|
|
|
...
|
...
|
|