Implement ALTCHA captcha service with challenge generation and solution verification

- Added AltchaService class for managing ALTCHA captcha challenges and solutions.
- Created CaptchaController to handle API requests for generating challenges.
- Introduced CaptchaGuard for validating captcha solutions on public endpoints.
- Developed unit tests for AltchaService to ensure challenge creation and solution verification functionality.
- Implemented integration tests for the Captcha API endpoint and captcha bypass behavior when disabled.
- Added documentation for the Captcha API in the corresponding markdown file.
This commit is contained in:
hamed
2026-07-10 10:31:59 +03:30
parent 11efed4100
commit 10b0743d9a
43 changed files with 5586 additions and 1554 deletions
+1
View File
@@ -10,6 +10,7 @@
"ext-ctype": "*",
"ext-iconv": "*",
"ext-soap": "*",
"altcha-org/altcha": "^2.0",
"doctrine/doctrine-bundle": ">=2.18.3",
"doctrine/doctrine-migrations-bundle": "*",
"doctrine/orm": "^3.6",