ldap: do not trace if deactivation_reason is None (#54198)
This commit is contained in:
parent
4a31ee2885
commit
1a236f7e1d
|
@ -1483,7 +1483,7 @@ class LDAPBackend(object):
|
|||
if not is_user_authenticable(user):
|
||||
return None
|
||||
|
||||
if not user.is_active and user.deactivation_reason.startswith('ldap-'):
|
||||
if not user.is_active and user.deactivation_reason and user.deactivation_reason.startswith('ldap-'):
|
||||
user.mark_as_active()
|
||||
|
||||
user_login_success(user.get_username())
|
||||
|
|
Loading…
Reference in New Issue