1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-05 07:27:21 +00:00

修复部分BUG...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-31 20:00:01 +08:00
parent 67ec2a329a
commit 17a9ae06a2
5 changed files with 28 additions and 68 deletions

View File

@ -76,14 +76,14 @@ $("#register").click(function(){
alert("用户名不能为空!");
return false;
}
if(username.val().length < 3){
alert("帐号长度不得低于3位!");
if(username.val().length < 3 || username.val().length > 16){
alert("帐号长度不得低于3位或大于16位!");
return;
}
if(username.val().length > 10){
alert("帐号长度不得超过10位!");
return false;
}
if(!RegexUserName.test(username.val())){
alert("帐号必须以小写字母+数字+下划线组成!");
return;
}
if(pass.val()==""){
alert("密码不能为空!");
return false;
@ -96,10 +96,6 @@ $("#register").click(function(){
alert("邮箱不能为空!");
return false;
}
if(!RegexUserName.test(username.val())){
alert("帐号必须以小写字母+数字+下划线组成!");
return;
}
if(!RegexEmail.test(email.val())){
alert("邮箱格式不正确!");
$('#email').val("");