Changeset d0c7563


Ignore:
Timestamp:
Dec 24, 2012, 3:39:49 AM (13 years ago)
Author:
MIT Association of Student Activities <asa@…>
Branches:
master, space-access, stable, stage
Children:
14f594b
Parents:
0290330
git-author:
Alex Dehnert <adehnert@…> (12/24/12 03:39:49)
git-committer:
MIT Association of Student Activities <asa@…> (12/24/12 03:39:49)
Message:

Use API function instead of UNUSABLE_PASSWORD

Yay abstractions, or something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/mit/__init__.py

    r0290330 rd0c7563  
    66
    77from django.contrib.auth.backends import RemoteUserBackend
    8 from django.contrib.auth.hashers import UNUSABLE_PASSWORD
    98from django.contrib.auth.middleware import RemoteUserMiddleware
    109from django.contrib.auth.views import login
     
    8483    def configure_user(self, user, ):
    8584        username = user.username
    86         user.password = UNUSABLE_PASSWORD
     85        user.set_unusable_password()
    8786        con = ldap.open('ldap-too.mit.edu')
    8887        con.simple_bind_s("", "")
Note: See TracChangeset for help on using the changeset viewer.