...
|
...
|
@@ -251,7 +251,7 @@ const setNewPasswordByMobilePage = (req, res) => { |
|
|
let areaCode = req.query.areaCode || '86';
|
|
|
let code = req.query.code || '';
|
|
|
|
|
|
if (!(code || (token && helpers.verifyMobile(phoneNum)))) {
|
|
|
if (!(code || (token && /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/.test(phoneNum)))) {
|
|
|
res.redirect(400);
|
|
|
return;
|
|
|
}
|
...
|
...
|
|