Changeset 71d716d for remit/settings.py


Ignore:
Timestamp:
Feb 4, 2010, 4:44:40 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
7416c7e
Parents:
f09f636
git-author:
Alex Dehnert <adehnert@…> (02/04/10 04:44:40)
git-committer:
Alex Dehnert <adehnert@…> (02/04/10 04:44:40)
Message:

AUTHENTICATION_BACKENDS is plural for a reason.

Punt the USE_CERTS option. We can resolve the
"when using cert auth you can't use password
login" issue by enabling multiple auth backends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/settings.py

    rcb5f343 r71d716d  
    1414)
    1515SERVER_EMAIL = 'remit@mit.edu'
    16 USE_CERTS = True
    1716
    1817GROUP_NAME = 'Remit'
     
    8180)
    8281
    83 if USE_CERTS:
    84     AUTHENTICATION_BACKENDS = (
    85         'mit.ScriptsRemoteUserBackend',
    86     )
    87 else:
    88     AUTHENTICATION_BACKENDS = (
    89         'django.contrib.auth.backends.ModelBackend',
    90     )
     82AUTHENTICATION_BACKENDS = (
     83    'mit.ScriptsRemoteUserBackend',
     84    'django.contrib.auth.backends.ModelBackend',
     85)
    9186
    9287ROOT_URLCONF = 'remit.urls'
Note: See TracChangeset for help on using the changeset viewer.