Merge pull request #1045 from scheb/2fa-bundle-v6

Recipe files for scheb/2fa-bundle v6
This commit is contained in:
Fabien Potencier
2021-12-29 19:25:29 +01:00
committed by GitHub
4 changed files with 22 additions and 1 deletions
@@ -1,4 +1,4 @@
# See the configuration reference at https://github.com/scheb/2fa/blob/master/doc/configuration.md
# See the configuration reference at https://symfony.com/bundles/SchebTwoFactorBundle/5.x/configuration.html
scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
@@ -0,0 +1,5 @@
# See the configuration reference at https://symfony.com/bundles/SchebTwoFactorBundle/6.x/configuration.html
scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
- Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken
@@ -0,0 +1,7 @@
2fa_login:
path: /2fa
defaults:
_controller: "scheb_two_factor.form_controller:form"
2fa_login_check:
path: /2fa_check
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["2fa"]
}