...
|
...
|
@@ -43,23 +43,23 @@ router.post('/passport/sms_login/password.json', smsLogin.password); |
|
|
// jsonp获取用户uid
|
|
|
router.get('/passport/login/user', login.user);
|
|
|
|
|
|
// 微信登录
|
|
|
router.get('/passport/login/wechat', login.common.beforeLogin, login.common.isLoginUser, login.wechat.login);
|
|
|
router.get('/passport/login/wechat/callback', login.wechat.callback);
|
|
|
router.get('/passport/login/wechat/redirect', login.wechat.redirect);
|
|
|
// // 微信登录
|
|
|
// router.get('/passport/login/wechat', login.common.beforeLogin, login.common.isLoginUser, login.wechat.login);
|
|
|
// router.get('/passport/login/wechat/callback', login.wechat.callback);
|
|
|
// router.get('/passport/login/wechat/redirect', login.wechat.redirect);
|
|
|
|
|
|
// sina登录
|
|
|
router.get('/passport/login/sina', login.common.beforeLogin, login.sina.login);
|
|
|
router.get('/passport/login/sina/callback', login.sina.callback);
|
|
|
router.get('/passport/login/sina/redirect', login.sina.redirect);
|
|
|
// // sina登录
|
|
|
// router.get('/passport/login/sina', login.common.beforeLogin, login.sina.login);
|
|
|
// router.get('/passport/login/sina/callback', login.sina.callback);
|
|
|
// router.get('/passport/login/sina/redirect', login.sina.redirect);
|
|
|
|
|
|
// qq登录
|
|
|
router.get('/passport/login/qq', login.common.beforeLogin, login.qq.login);
|
|
|
router.get('/passport/login/qq/callback', login.qq.callback);
|
|
|
// // qq登录
|
|
|
// router.get('/passport/login/qq', login.common.beforeLogin, login.qq.login);
|
|
|
// router.get('/passport/login/qq/callback', login.qq.callback);
|
|
|
|
|
|
// 支付宝登录
|
|
|
router.get('/passport/login/alipay', login.common.beforeLogin, login.alipay.login);
|
|
|
router.get('/passport/login/alipay/callback', login.alipay.callback);
|
|
|
// // 支付宝登录
|
|
|
// router.get('/passport/login/alipay', login.common.beforeLogin, login.alipay.login);
|
|
|
// router.get('/passport/login/alipay/callback', login.alipay.callback);
|
|
|
|
|
|
// 登录绑定
|
|
|
// router.get('/passport/bind/index', validateCode.load, bind.indexPage);
|
...
|
...
|
@@ -171,7 +171,8 @@ router.post('/passport/sms_login/step1_check', validateCode.check, smsLogin.inde |
|
|
router.get('/signin.html',
|
|
|
login.common.clearCookie,
|
|
|
login.common.thirdLogin,
|
|
|
login.common.weixinCheck,
|
|
|
|
|
|
// login.common.weixinCheck,
|
|
|
validateCode.load,
|
|
|
login.common.beforeLogin,
|
|
|
smsLogin.smsLoginPage); // 短信验证码登录
|
...
|
...
|
|