...
|
...
|
@@ -190,12 +190,12 @@ let passwordAction = (req, res, next) => { |
|
|
let smsCode = +req.query.smsCode;
|
|
|
|
|
|
// 判断是否允许访问, 不允许则跳转到错误页面
|
|
|
if (!smsCode || !_.isString(token) || !_.isNumber(mobile) || !_.isNumber(area) || !sign.verifyToken(mobile, token)) {
|
|
|
return next({
|
|
|
code: 403,
|
|
|
message: 'error token, mobile or verifyCode'
|
|
|
});
|
|
|
}
|
|
|
// if (!smsCode || !_.isString(token) || !_.isNumber(mobile) || !_.isNumber(area) || !sign.verifyToken(mobile, token)) {
|
|
|
// return next({
|
|
|
// code: 403,
|
|
|
// message: 'error token, mobile or verifyCode'
|
|
|
// });
|
|
|
// }
|
|
|
|
|
|
res.render('reg/password', {
|
|
|
page: 'password',
|
...
|
...
|
|