Added option to recheck/view custom domain records

This commit is contained in:
Will Browning
2021-03-08 16:16:34 +00:00
parent 8213efa7f5
commit 95e4e61291
4 changed files with 27 additions and 14 deletions

View File

@@ -6,17 +6,13 @@ class DomainVerificationController extends Controller
{
public function __construct()
{
$this->middleware('throttle:6,1');
$this->middleware('throttle:1,1');
}
public function checkSending($id)
{
$domain = user()->domains()->findOrFail($id);
if ($domain->isVerifiedForSending()) {
return response('Domain already verified for sending', 404);
}
return $domain->checkVerificationForSending();
}
}