feat(captcha): add ALTCHA configuration endpoint and integrate into HomeController

- Introduced a new endpoint `/api/v1/altcha/config` in CaptchaController to return the status of the ALTCHA captcha.
- Updated HomeController to inject AltchaService and pass the captcha status to the home page template.
- Modified the home.html.twig template to conditionally render the ALTCHA widget based on the captcha status.
- Updated manifest.json and cache files to reflect changes in the codebase.
This commit is contained in:
hamed
2026-07-10 11:18:40 +03:30
parent 6f2e0ec2f1
commit c3c520801d
15 changed files with 727 additions and 625 deletions
+12 -12
View File
@@ -1550,8 +1550,8 @@
"semantic_hash": ""
},
"src/Shared/Controller/HomeController.php": {
"mtime": 1781248993.1596208,
"ast_hash": "dc0ad4e679dd2d45bd47e2c835e962d8",
"mtime": 1783669189.7814353,
"ast_hash": "d040ce564fe867e1a7f7b3dd23b44607",
"semantic_hash": ""
},
"src/Shared/Doctrine/JsonContains.php": {
@@ -2260,8 +2260,8 @@
"semantic_hash": ""
},
"config/packages/security.yaml": {
"mtime": 1783666096.9829946,
"ast_hash": "7236c28a514152be0d7dbf02834096c4",
"mtime": 1783669243.3956637,
"ast_hash": "aa39bbbcb9476e4663f7f7e8e513528c",
"semantic_hash": ""
},
"config/packages/twig.yaml": {
@@ -3245,8 +3245,8 @@
"semantic_hash": ""
},
"docker-compose.yml": {
"mtime": 1783608242.4596496,
"ast_hash": "466eb229daac6f54667dd7ecb20efadf",
"mtime": 1783669013.1104357,
"ast_hash": "d2b26d468f967197b376295721bcb435",
"semantic_hash": ""
},
"docs/DEPLOY.md": {
@@ -3805,8 +3805,8 @@
"semantic_hash": ""
},
"assets/admin/components/ui/Altcha.tsx": {
"mtime": 1783668418.3771482,
"ast_hash": "121352e982ca664204d71d9f779984f0",
"mtime": 1783669268.9603772,
"ast_hash": "7d54c6ce3a09652debabd3d8fdca8cfa",
"semantic_hash": ""
},
"src/Shared/Captcha/AltchaService.php": {
@@ -3815,8 +3815,8 @@
"semantic_hash": ""
},
"src/Shared/Captcha/CaptchaController.php": {
"mtime": 1783666097.1135097,
"ast_hash": "e6fccf870e0891e4d836baf6c27aa958",
"mtime": 1783669229.4041903,
"ast_hash": "4243706cbee22c8a57d27b48c55eeded",
"semantic_hash": ""
},
"src/Shared/Captcha/CaptchaGuard.php": {
@@ -3840,8 +3840,8 @@
"semantic_hash": ""
},
"docs/api/captcha.md": {
"mtime": 1783668751.744952,
"ast_hash": "977820fe357db7b73b2dc2de861eaae9",
"mtime": 1783669288.2668343,
"ast_hash": "56e9b036792f8b79aafd0f60dbd546e9",
"semantic_hash": ""
}
}