解决bug:自动注册用户时,邮箱名过长超过login限制

解决方法:login长度和邮箱长度同步
This commit is contained in:
huang 2015-09-17 15:24:12 +08:00
parent b943a1de63
commit 7a014e1f79
2 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@
$("#valid_email").text("<%= l(:label_email_format_error)%>");
return false;
}
else if(email.split('@')[0].length > 20)
else if(email.length > 25)
{
$("#valid_email").text("邮箱名过长,最长为20个字符");
$("#valid_email").text("邮箱名过长,最长为25个字符");
return false;
}
else

View File

@ -347,7 +347,7 @@ zh:
#
# 邀请
#
label_invite_new_user: "发送邮件邀请用户"
label_invite_new_user: "邀请用户加入项目"
label_invite_join: 邀请加入
label_invite_email_tips: 输入好友的邮箱地址Trustie会自动为该好友注册平台账号
notice_registed_error: 您输入的邮箱地址为空或者该邮箱已被注册!