~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.py

  • Committer: David Coles
  • Date: 2009-08-17 21:11:50 UTC
  • Revision ID: coles.david@gmail.com-20090817211150-r3bljeiv5t78v0uz
Normalise usernames to lowercase so that they are case insensitive.
This is to prevent an issue with a certain "unnamed LDAP service" doing case insensative lookups meaning we will create duplicate users.
Fixes lp:415171

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
                else:
102
102
                    user = None
103
103
                    try:
 
104
                        # Username is case insensitive
104
105
                        user = authenticate.authenticate(req.config, req.store,
105
 
                                    username.value, password.value)
 
106
                                    username.value.lower(), password.value)
106
107
                    except AuthError, msg:
107
108
                        badlogin = msg
108
109
                    if user is None: