Changes between Initial Version and Version 1 of Ticket #28645, comment 19
- Timestamp:
- Mar 9, 2021, 5:09:03 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28645, comment 19
initial v1 1 1 I'm using Django 3.1, and I spent some time on figuring the issue with ModelBackend.authenticate() method. In my application I was willing to authenticate active and inactive users, and the default ModelBackend is not designed to do this. 2 2 3 In Django 3.1 there is a class (backends.py)AllowAllUsersModelBackend that inherits all the functionality from the ModelBackend class and permits authentication of active and inactive users.3 In Django 3.1 (backends.py) there is a class AllowAllUsersModelBackend that inherits all the functionality from the ModelBackend class and permits authentication of active and inactive users. 4 4 5 5 PS: The problem seems to be solved, however it took me some time to figure the things out.