feat(auth): implement CSRF token protection for state-changing operations
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -80,6 +80,7 @@ async def login(request: Request):
|
||||
"show_oauth": OAUTH_CONFIGURED,
|
||||
"oauth_provider_name": OAUTH_PROVIDER_NAME,
|
||||
"app_version": settings.version, # Changed from app_version to version
|
||||
"csrf_token": getattr(request.state, "csrf_token", ""),
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user