|
|
@ -362,8 +362,15 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(phonepassword.length < 6 || phonepassword.length > 15){
|
|
|
|
if(phonepassword.length < 6 || phonepassword.length > 15){
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z]).{8,30}');
|
|
|
|
|
|
|
|
if (!pwdRegex.test(phonepassword)) {
|
|
|
|
|
|
|
|
alert("您的密码复杂度太低(密码中必须包含字母、数字)!");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(phonecode == ''){
|
|
|
|
if(phonecode == ''){
|
|
|
|
alert('请输入验证码');
|
|
|
|
alert('请输入验证码');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -443,6 +450,11 @@
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])');
|
|
|
|
|
|
|
|
if (!pwdRegex.test(regpassword)) {
|
|
|
|
|
|
|
|
alert("您的密码复杂度太低(密码中必须包含字母、数字)!");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(regpassword != regpassword2){
|
|
|
|
if(regpassword != regpassword2){
|
|
|
|
alert('两次密码不一样');
|
|
|
|
alert('两次密码不一样');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|