remove unnecessary logger in hook event (#53949)
This commit is contained in:
parent
fb05732164
commit
42b9781ee0
|
@ -31,7 +31,6 @@ class AppConfig(django.apps.AppConfig):
|
||||||
|
|
||||||
def a2_hook_event(self, name, **kwargs):
|
def a2_hook_event(self, name, **kwargs):
|
||||||
if name == 'registration':
|
if name == 'registration':
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
if kwargs.get('authentication_method') == 'fedict':
|
if kwargs.get('authentication_method') == 'fedict':
|
||||||
user = kwargs.get('user')
|
user = kwargs.get('user')
|
||||||
user.backend = 'authentic2_auth_fedict.backends.FedictBackend'
|
user.backend = 'authentic2_auth_fedict.backends.FedictBackend'
|
||||||
|
|
Loading…
Reference in New Issue