Remove isDomainDmarcRestricted
[MAILPOET-5782]
This commit is contained in:
committed by
Aschepikov
parent
7f6b66cf8f
commit
5735d21e4d
@@ -289,22 +289,6 @@ class Settings extends APIEndpoint {
|
||||
return $this->successResponse($response);
|
||||
}
|
||||
|
||||
public function checkDomainDmarcPolicy($data = []) {
|
||||
$domain = $data['domain'] ?? null;
|
||||
|
||||
if (!$domain) {
|
||||
return $this->badRequest([
|
||||
APIError::BAD_REQUEST => __('No sender domain specified.', 'mailpoet'),
|
||||
]);
|
||||
}
|
||||
|
||||
$domain = strtolower(trim($domain));
|
||||
|
||||
$response = ['isDmarcPolicyRestricted' => $this->senderDomainController->isDomainDmarcRestricted($domain)];
|
||||
|
||||
return $this->successResponse($response);
|
||||
}
|
||||
|
||||
public function getAuthorizedSenderDomains($data = []) {
|
||||
$domain = $data['domain'] ?? null;
|
||||
|
||||
|
Reference in New Issue
Block a user