modify plugin name

This commit is contained in:
2022-02-25 17:12:15 +08:00
parent 14dd7efda6
commit db725b710d
13 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -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);
}