Add recipe for scheb/two-factor-bundle

This commit is contained in:
Christian Scheb
2018-11-13 00:23:40 +01:00
parent 0881a4bf4b
commit 5af847d6a6
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,6 @@
# See the configuration reference at https://github.com/scheb/two-factor-bundle/blob/master/Resources/doc/configuration.md
scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
# If you're using guard-based authentication, you have to use this one:
# - Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken
@@ -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,8 @@
{
"bundles": {
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}