AllowAllUsersModelBackend
This class provides an authentication backend that allows any user to authenticate regardless of their status. It overrides the default behavior to ensure that the authentication check always returns true for any given user instance.
Methods
user_can_authenticate()
@classmethod
def user_can_authenticate(
user: [User](../models/user.md?sid=django_contrib_auth_models_user)
) - > boolean
Determines if a user is permitted to authenticate by always returning True, effectively bypassing standard active status checks.
Parameters
| Name | Type | Description |
|---|---|---|
| user | [User](../models/user.md?sid=django_contrib_auth_models_user) | The user instance being evaluated for authentication permissions. |
Returns
| Type | Description |
|---|---|
boolean | Always returns True to allow any user instance to authenticate regardless of their account status. |