Changes between Version 1 and Version 2 of Ticket #28645, comment 19


Ignore:
Timestamp:
Mar 9, 2021, 5:09:25 AM (4 years ago)
Author:
alv2017

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28645, comment 19

    v1 v2  
    11I'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.
    22
    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.
     3In Django 3.1 (backends.py) there is a class  AllowAllUsersModelBackend that inherits all the functionality from the ModelBackend and permits authentication of active and inactive users.
    44
    55PS: The problem seems to be solved, however it took me some time to figure the things out.
Back to Top