From 2db616b586f473238706e554e809086935e0f33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 13 Oct 2015 22:43:15 +0200 Subject: 2factor authentication via email --- src/Wallabag/UserBundle/Resources/config/services.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/Wallabag/UserBundle/Resources/config') diff --git a/src/Wallabag/UserBundle/Resources/config/services.yml b/src/Wallabag/UserBundle/Resources/config/services.yml index e69de29b..9cdd247d 100644 --- a/src/Wallabag/UserBundle/Resources/config/services.yml +++ b/src/Wallabag/UserBundle/Resources/config/services.yml @@ -0,0 +1,19 @@ +parameters: + wallabag_user.twofactor.email.provider.class: Wallabag\UserBundle\Security\TwoFactor\Email\Helper + wallabag_user.twofactor.email.interactive_login_listener.class: Wallabag\UserBundle\Security\TwoFactor\Email\InteractiveLoginListener + wallabag_user.twofactor.email.request_listener.class: Wallabag\UserBundle\Security\TwoFactor\Email\RequestListener + +services: + wallabag_user.twofactor.email.provider: + class: %wallabag_user.twofactor.email.provider.class% + arguments: ['@doctrine.orm.entity_manager', '@mailer'] + wallabag_user.twofactor.email.interactive_login_listener: + class: %wallabag_user.twofactor.email.interactive_login_listener.class% + tags: + - { name: kernel.event_listener, event: security.interactive_login, method: onSecurityInteractiveLogin } + arguments: ['@wallabag_user.twofactor.email.provider'] + wallabag_user.twofactor.email.request_listener: + class: %wallabag_user.twofactor.email.request_listener.class% + tags: + - { name: kernel.event_listener, event: kernel.request, method: onCoreRequest, priority: -1 } + arguments: ['@wallabag_user.twofactor.email.provider', '@security.context', '@templating', '@router'] -- cgit v1.2.3