Skip to content

Commit

Permalink
Removed config line to cause issue on google authenticator
Browse files Browse the repository at this point in the history
This fixes the following issue:
Stop sonata-project/google-authenticator throwing this exception: Exception thrown when handling an exception (ErrorException: Warning: get_class() expects parameter 1 to be object, null given at /sonata-project/user-bundle/src/GoogleAuthenticator/RequestListener.php line 77
  • Loading branch information
Gianluca Galli committed Aug 26, 2020
1 parent bcec711 commit ca68993
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Resources/config/google_authenticator.xml
Expand Up @@ -19,8 +19,6 @@
<tag name="kernel.event_listener" event="kernel.request" method="onCoreRequest" priority="-1"/>
<argument type="service" id="sonata.user.google.authenticator.provider"/>
<argument type="service" id="security.token_storage"/>
<!-- NEXT_MAJOR: Remove "sonata.templating" argument -->
<argument type="service" id="sonata.templating" on-invalid="null"/>
<argument type="service" id="twig"/>
</service>
<service id="sonata.user.google.authenticator.success_handler" class="Sonata\UserBundle\EventListener\TwoFactorLoginSuccessHandler" public="false">
Expand Down

0 comments on commit ca68993

Please sign in to comment.