feat: add captcha-backed forum security hardening

This commit is contained in:
2026-03-17 16:06:28 +01:00
parent 980a15f66e
commit b3fc889452
40 changed files with 2849 additions and 108 deletions

View File

@@ -17,6 +17,7 @@ use App\Models\Artwork;
use App\Models\ProfileComment;
use App\Models\Story;
use App\Models\User;
use App\Services\Security\CaptchaVerifier;
use App\Services\AvatarService;
use App\Services\ArtworkService;
use App\Services\FollowService;
@@ -47,6 +48,7 @@ class ProfileController extends Controller
private readonly UsernameApprovalService $usernameApprovalService,
private readonly FollowService $followService,
private readonly UserStatsService $userStats,
private readonly CaptchaVerifier $captchaVerifier,
)
{
}
@@ -240,7 +242,9 @@ class ProfileController extends Controller
'flash' => [
'status' => session('status'),
'error' => session('error'),
'botCaptchaRequired' => session('bot_captcha_required', false),
],
'captcha' => $this->captchaVerifier->frontendConfig(),
])->rootView('settings');
}