添加邮箱验证
This commit is contained in:
parent
94367eee82
commit
463b6e91f5
|
@ -128,6 +128,11 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$mail.blur(function (event) {
|
$mail.blur(function (event) {
|
||||||
|
if (/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(this.value) == false){
|
||||||
|
$('#mail_req').html( '<span style="color: red">邮件格式不对</span>').show();
|
||||||
|
$mail_correct = false;
|
||||||
|
return ;
|
||||||
|
}
|
||||||
if ($(this).is('#user_mail')) {
|
if ($(this).is('#user_mail')) {
|
||||||
$.get('<%=account_valid_ajax_path%>',
|
$.get('<%=account_valid_ajax_path%>',
|
||||||
{ valid: "mail",
|
{ valid: "mail",
|
||||||
|
|
Loading…
Reference in New Issue