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


Ignore:
Timestamp:
03/09/21 11:09:25 (16 months ago)
Author:
alv2017
Comment:

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