remove unnecessary logger in hook event (#53949)

This commit is contained in:
Frédéric Péters 2021-05-12 09:36:28 +02:00
parent fb05732164
commit 42b9781ee0
1 changed files with 0 additions and 1 deletions

View File

@ -31,7 +31,6 @@ class AppConfig(django.apps.AppConfig):
def a2_hook_event(self, name, **kwargs):
if name == 'registration':
logger = logging.getLogger(__name__)
if kwargs.get('authentication_method') == 'fedict':
user = kwargs.get('user')
user.backend = 'authentic2_auth_fedict.backends.FedictBackend'