Showing
1 changed file
with
7 additions
and
5 deletions
@@ -126,43 +126,45 @@ const LoginNew = require('./controllers/login-new'); | @@ -126,43 +126,45 @@ const LoginNew = require('./controllers/login-new'); | ||
126 | const loginNew = new LoginNew(); | 126 | const loginNew = new LoginNew(); |
127 | 127 | ||
128 | router.get('/passport/login', | 128 | router.get('/passport/login', |
129 | + login.common.clearCookie, | ||
129 | validateCode.load, | 130 | validateCode.load, |
130 | login.common.beforeLogin, | 131 | login.common.beforeLogin, |
131 | - login.common.clearCookie, | ||
132 | login.loginShowCaptchaByIp, | 132 | login.loginShowCaptchaByIp, |
133 | loginNew.loginPage); // 普通登录 | 133 | loginNew.loginPage); // 普通登录 |
134 | router.get('/passport/international', | 134 | router.get('/passport/international', |
135 | + login.common.clearCookie, | ||
135 | validateCode.load, | 136 | validateCode.load, |
136 | login.common.beforeLogin, | 137 | login.common.beforeLogin, |
137 | - login.common.clearCookie, | ||
138 | login.loginShowCaptchaByIp, | 138 | login.loginShowCaptchaByIp, |
139 | loginNew.international); // 国际账号登录 | 139 | loginNew.international); // 国际账号登录 |
140 | router.get('/passport/reg/index', | 140 | router.get('/passport/reg/index', |
141 | - validateCode.load, | ||
142 | login.common.clearCookie, | 141 | login.common.clearCookie, |
142 | + validateCode.load, | ||
143 | reg.regPage); // 注册页面 | 143 | reg.regPage); // 注册页面 |
144 | router.post('/passport/register-new', | 144 | router.post('/passport/register-new', |
145 | reg.sendCodeBusyBoy, | 145 | reg.sendCodeBusyBoy, |
146 | reg.register); // 注册请求 | 146 | reg.register); // 注册请求 |
147 | router.get('/passport/sms_login', | 147 | router.get('/passport/sms_login', |
148 | + login.common.clearCookie, | ||
148 | validateCode.load, | 149 | validateCode.load, |
149 | smsLogin.smsLoginPage); // 短信验证码登录 | 150 | smsLogin.smsLoginPage); // 短信验证码登录 |
150 | 151 | ||
151 | // 兼容老的路由 | 152 | // 兼容老的路由 |
152 | router.get('/signin.html', | 153 | router.get('/signin.html', |
154 | + login.common.clearCookie, | ||
153 | login.common.thirdLogin, | 155 | login.common.thirdLogin, |
154 | login.common.weixinCheck, | 156 | login.common.weixinCheck, |
155 | validateCode.load, | 157 | validateCode.load, |
156 | login.common.beforeLogin, | 158 | login.common.beforeLogin, |
157 | - login.common.clearCookie, | ||
158 | smsLogin.smsLoginPage); // 短信验证码登录 | 159 | smsLogin.smsLoginPage); // 短信验证码登录 |
159 | router.get('/reg.html', | 160 | router.get('/reg.html', |
161 | + login.common.clearCookie, | ||
160 | validateCode.load, | 162 | validateCode.load, |
161 | reg.regPage); // 注册页面 | 163 | reg.regPage); // 注册页面 |
162 | router.get('/login.html', | 164 | router.get('/login.html', |
165 | + login.common.clearCookie, | ||
163 | validateCode.load, | 166 | validateCode.load, |
164 | login.common.beforeLogin, | 167 | login.common.beforeLogin, |
165 | - login.common.clearCookie, | ||
166 | login.loginShowCaptchaByIp, | 168 | login.loginShowCaptchaByIp, |
167 | loginNew.international); // 国际账号登录 | 169 | loginNew.international); // 国际账号登录 |
168 | 170 |
-
Please register or login to post a comment