From 57bafec204b8ee45f111eb257811ace0573c8196 Mon Sep 17 00:00:00 2001 From: Noloquideus Date: Fri, 17 Apr 2026 13:05:11 +0300 Subject: [PATCH] feat: add csrf --- src/presentation/routing/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/presentation/routing/auth.py b/src/presentation/routing/auth.py index 612e570..ed03671 100644 --- a/src/presentation/routing/auth.py +++ b/src/presentation/routing/auth.py @@ -33,6 +33,7 @@ auth_router = APIRouter(prefix='/auth', tags=['auth']) ) @rate_limit(limit=5, window_seconds=60, scope='ip') @rate_limit(limit=3, window_seconds=600, scope='key', key_prefix='rl:reg_start', key_builder=email_rl_key) +@csrf_protect() async def registration_start( request: Request, body: RegistrationStart,