aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_auth.py
diff options
context:
space:
mode:
authorayleph <ayleph@thisshitistemp.com>2014-08-03 15:55:16 -0700
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-10-30 11:34:23 -0500
commita2b3c623fd53824ff84d9ac737636d30d0f52999 (patch)
tree2e1416a9975de4827843c9f8aedcac2adf056fb0 /mediagoblin/tests/test_auth.py
parentaa50cab0dcfcdc3606893b6cbded4227190f8980 (diff)
downloadmediagoblin-a2b3c623fd53824ff84d9ac737636d30d0f52999.tar.lz
mediagoblin-a2b3c623fd53824ff84d9ac737636d30d0f52999.tar.xz
mediagoblin-a2b3c623fd53824ff84d9ac737636d30d0f52999.zip
Pass validated username to check_login_simple
The login function in mediagoblin/auth/views.py grabs the username prior to form validation. If validation passes, the pre-validated username is passed to the check_login_simple function. Lowercasifying of the username occurs as part of form validation. By sending the pre-validated username, there's a chance of sending a username with uppercase letters. This will fail to match any user ids in the database, as all of the usernames are lowercased during the registration process. This change sends the post-validated username to check_login_simple, so that any username that was entered by the user with uppercase letters has a chance to be properly lowercased before being passed.
Diffstat (limited to 'mediagoblin/tests/test_auth.py')
0 files changed, 0 insertions, 0 deletions