Skip to content

Commit 8a71e6d

Browse files
committed
Register validator constraints, fixes #303
1 parent eb26828 commit 8a71e6d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/bundle/Resources/config/two_factor_provider_google.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
])
4747

4848
->set('scheb_two_factor.security.totp.validator.user_google_totp_code', UserGoogleTotpCodeValidator::class)
49+
->tag('validator.constraint_validator', ['alias' => 'scheb_two_factor.security.totp.validator.user_google_totp_code'])
4950
->args([
5051
service('security.token_storage'),
5152
service('scheb_two_factor.security.google_authenticator'),

src/bundle/Resources/config/two_factor_provider_totp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
])
4848

4949
->set('scheb_two_factor.security.totp.validator.user_totp_code', UserTotpCodeValidator::class)
50+
->tag('validator.constraint_validator', ['alias' => 'scheb_two_factor.security.totp.validator.user_totp_code'])
5051
->args([
5152
service('security.token_storage'),
5253
service('scheb_two_factor.security.totp_authenticator'),

0 commit comments

Comments
 (0)