mirror of
https://github.com/anonaddy/anonaddy
synced 2026-05-05 06:32:01 +02:00
23 lines
442 B
PHP
23 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
class DomainVerificationController extends Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->middleware('throttle:1,1');
|
|
}
|
|
|
|
public function recheck($id)
|
|
{
|
|
$domain = user()->domains()->findOrFail($id);
|
|
|
|
if ($domain->isVerified()) {
|
|
return response('Domain already verified', 404);
|
|
}
|
|
|
|
return $domain->checkVerification();
|
|
}
|
|
}
|