mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Merge pull request #1045 from scheb/2fa-bundle-v6
Recipe files for scheb/2fa-bundle v6
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"aliases": ["2fa"]
|
||||
}
|
||||
Reference in New Issue
Block a user