Reject users with is_active=False. Custom user models that don't have that attribute are allowed.
(self, user)
| 94 | return user |
| 95 | |
| 96 | def user_can_authenticate(self, user): |
| 97 | """ |
| 98 | Reject users with is_active=False. Custom user models that don't have |
| 99 | that attribute are allowed. |
| 100 | """ |
| 101 | return getattr(user, "is_active", True) |
| 102 | |
| 103 | def _get_user_permissions(self, user_obj): |
| 104 | return user_obj.user_permissions.all() |
no outgoing calls
no test coverage detected