|
|
@ -442,15 +442,20 @@
|
|
|
|
var regpassword = $('#regpassword').val();
|
|
|
|
var regpassword = $('#regpassword').val();
|
|
|
|
var regpassword2 = $("#regpassword2").val();
|
|
|
|
var regpassword2 = $("#regpassword2").val();
|
|
|
|
var promoteId = $("#promote_id").val();
|
|
|
|
var promoteId = $("#promote_id").val();
|
|
|
|
|
|
|
|
var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])');
|
|
|
|
if(account.length < 6 || account.length > 12){
|
|
|
|
if(account.length < 6 || account.length > 12){
|
|
|
|
alert('账号必须是6-12位字母数字组合');
|
|
|
|
alert('账号必须是6-12位字母数字组合');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!pwdRegex.test(account)) {
|
|
|
|
|
|
|
|
alert("账号必须是6-12位字母数字组合!");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(regpassword.length < 6 || regpassword.length > 15){
|
|
|
|
if(regpassword.length < 6 || regpassword.length > 15){
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
alert('密码长度6-15个字符');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])');
|
|
|
|
|
|
|
|
if (!pwdRegex.test(regpassword)) {
|
|
|
|
if (!pwdRegex.test(regpassword)) {
|
|
|
|
alert("您的密码复杂度太低(密码中必须包含字母、数字)!");
|
|
|
|
alert("您的密码复杂度太低(密码中必须包含字母、数字)!");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|