Reorder authentication backends to prioritize NoPasswordAuthBackend while retaining Allauth and ModelBackend
This commit is contained in:
@@ -237,8 +237,8 @@ HEADLESS_FRONTEND_URLS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = [
|
AUTHENTICATION_BACKENDS = [
|
||||||
'allauth.account.auth_backends.AuthenticationBackend',
|
|
||||||
'users.backends.NoPasswordAuthBackend',
|
'users.backends.NoPasswordAuthBackend',
|
||||||
|
'allauth.account.auth_backends.AuthenticationBackend',
|
||||||
'django.contrib.auth.backends.ModelBackend',
|
'django.contrib.auth.backends.ModelBackend',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user