modify plugin name
This commit is contained in:
+2
-2
@@ -26,13 +26,13 @@ class EmailValidator extends BaseValidator
|
||||
}
|
||||
$exp = "^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
|
||||
if (!preg_match($exp, $value)) {
|
||||
return $this->addError('The param :attribute format error');
|
||||
return $this->addError($field,'The param :attribute format error');
|
||||
}
|
||||
[$account, $domain] = explode("@", $value);
|
||||
if (checkdnsrr($domain, "MX")) {
|
||||
return true;
|
||||
}
|
||||
return $this->addError('The param :attribute format error');
|
||||
return $this->addError($field,'The param :attribute format error');
|
||||
}, $this->params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user