rewrite PasswordFactor to use backends setting instead of trying all backends

This commit is contained in:
Jens Langhammer
2019-03-10 21:47:08 +01:00
parent ad8125ac1c
commit 501fed1922
5 changed files with 53 additions and 13 deletions

View File

@ -47,8 +47,7 @@ SESSION_COOKIE_NAME = 'passbook_session'
LANGUAGE_COOKIE_NAME = 'passbook_language'
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'passbook.oauth_client.backends.AuthorizedServiceBackend'
'django.contrib.auth.backends.ModelBackend'
]
# Application definition