feat(altcha): add altcha validation layer to login
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit

This commit is contained in:
2025-03-24 17:20:17 +01:00
parent 1cb5ae6bc3
commit 488ca00a41
9 changed files with 274 additions and 9 deletions

View File

@@ -75,3 +75,19 @@ services:
$securityPattern: '%security_pattern%'
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
App\Altcha\Form\AltchaType:
arguments:
$altchaHost: "%env(string:ALTCHA_HOST)%"
$altchaBaseUrl: "%env(string:ALTCHA_BASE_URL)%"
$altchaDebug: "%env(bool:ALTCHA_DEBUG)%"
$altchaWorkers: "%env(string:ALTCHA_WORKERS)%"
$altchaDelay: "%env(string:ALTCHA_DELAY)%"
$altchaMockError: "%env(bool:ALTCHA_MOCK_ERROR)%"
tags:
- { name: form.type, alias: altcha}
App\Altcha\AltchaValidator:
arguments:
$altchaHost: "%env(string:ALTCHA_HOST)%"
$altchaBaseUrl: "%env(string:ALTCHA_BASE_URL)%"