0001-ldap-do-not-trace-if-deactivation_reason-is-None-541.patch
src/authentic2/backends/ldap_backend.py | ||
---|---|---|
1483 | 1483 |
if not is_user_authenticable(user): |
1484 | 1484 |
return None |
1485 | 1485 | |
1486 |
if not user.is_active and user.deactivation_reason.startswith('ldap-'): |
|
1486 |
if not user.is_active and user.deactivation_reason and user.deactivation_reason.startswith('ldap-'):
|
|
1487 | 1487 |
user.mark_as_active() |
1488 | 1488 | |
1489 | 1489 |
user_login_success(user.get_username()) |
1490 |
- |