Changeset 213c1e0


Ignore:
Timestamp:
May 26, 2010, 8:23:38 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
6e43384
Parents:
29e55de
git-author:
Alex Dehnert <adehnert@…> (05/26/10 20:15:03)
git-committer:
Alex Dehnert <adehnert@…> (05/26/10 20:23:38)
Message:

Give autocreated users a fake password (Trac: #38)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/mit/__init__.py

    re02a4b2 r213c1e0  
    2121    def configure_user(self, user, ):
    2222        username = user.username
     23        user.password = "ScriptsSSLAuth"
    2324        import ldap
    2425        con = ldap.open('ldap.mit.edu')
     
    3536            except ObjectDoesNotExist:
    3637                print "Failed to retrieve mit group"
    37             user.save()
    3838        try:
    3939            user.groups.add(auth.models.Group.objects.get(name='autocreated'))
    4040        except ObjectDoesNotExist:
    4141            print "Failed to retrieve autocreated group"
     42        user.save()
    4243        return user
Note: See TracChangeset for help on using the changeset viewer.