Authored by ccbikai

修改密码正则验证

... ... @@ -287,5 +287,9 @@ exports.verifyMobile = (phone) => {
};
exports.verifyPassword = (password) => {
return password;
if (!password) {
return false;
}
return /^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/.test(password);
};
... ...