diff --git a/config/packages/scheb_2fa.yaml b/config/packages/scheb_2fa.yaml index 194a218..0d62882 100644 --- a/config/packages/scheb_2fa.yaml +++ b/config/packages/scheb_2fa.yaml @@ -1,15 +1,16 @@ # 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 backup_codes: enabled: true - email: - enabled: true + google: enabled: true server_name: "Intranet Ludikevent" issuer: "Ludikevent" digits: 6 leeway: 0 + template: "security/2fa_login.html.twig" diff --git a/templates/security/2fa_login.html.twig b/templates/security/2fa_login.html.twig new file mode 100644 index 0000000..9ab9c37 --- /dev/null +++ b/templates/security/2fa_login.html.twig @@ -0,0 +1,100 @@ +{% extends 'base.twig' %} + +{% block title %}Vérification Sécurisée - Ludikevent{% endblock %} + +{% block body %} +
+ + {{ "choose_provider"|trans({}, 'SchebTwoFactorBundle') }}: + {% for provider in availableTwoFactorProviders %} + {{ provider }} + {% endfor %} +
+ {% endif %} + ++ Saisissez le code de validation {{ twoFactorProvider }} pour confirmer votre identité. +
+ + +