...
|
...
|
@@ -183,7 +183,9 @@ class Reg { |
|
|
let smsCode = +req.body.smsCode;
|
|
|
let inviteCode = req.body.inviteCode || '';
|
|
|
let isFromMy = _.get(req.session, 'phoneReg.isFromMy', '0');
|
|
|
let token = req.body.token;
|
|
|
|
|
|
// let token = req.body.token;
|
|
|
let token = '';
|
|
|
let clientIp = req.yoho.clientIp || '';
|
|
|
let from = req.cookies.from || 'yohobuy';
|
|
|
|
...
|
...
|
@@ -197,10 +199,10 @@ class Reg { |
|
|
}
|
|
|
|
|
|
// 判断是否允许访问
|
|
|
if (!sign.verifyToken(mobile, token)) {
|
|
|
postResult.message = '非法 token';
|
|
|
return res.json(postResult);
|
|
|
}
|
|
|
// if (!sign.verifyToken(mobile, token)) {
|
|
|
// postResult.message = '非法 token';
|
|
|
// return res.json(postResult);
|
|
|
// }
|
|
|
|
|
|
// 判断密码是否符合规则
|
|
|
if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/.test(password)) {
|
...
|
...
|
|