mirror of
https://github.com/anonaddy/anonaddy
synced 2026-05-08 08:02:59 +02:00
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
class DomainVerificationController extends Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->middleware('throttle:6,1');
|
|
}
|
|
|
|
public function checkSending($id)
|
|
{
|
|
$domain = user()->domains()->findOrFail($id);
|
|
|
|
if ($domain->isVerifiedForSending()) {
|
|
return response('Domain already verified for sending', 404);
|
|
}
|
|
|
|
return $domain->checkVerificationForSending();
|
|
}
|
|
}
|