diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-11 20:34:12 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-11 20:34:12 -0500 |
commit | 873e4e9d2da8a3976de6c44838f517cfc314d620 (patch) | |
tree | 58be0b962f6d253582c5134d21f1ae0c38ed06ce | |
parent | 0bf099d7536b5f5f876fa21e4c72f132b7c757a8 (diff) | |
download | mediagoblin-873e4e9d2da8a3976de6c44838f517cfc314d620.tar.lz mediagoblin-873e4e9d2da8a3976de6c44838f517cfc314d620.tar.xz mediagoblin-873e4e9d2da8a3976de6c44838f517cfc314d620.zip |
Also normalize user's emails to .lower() when we accept the user.
-rw-r--r-- | mediagoblin/auth/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index 61164be8..91599e47 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -61,7 +61,7 @@ def register(request): # Create the user user = request.db.User() user['username'] = request.POST['username'].lower() - user['email'] = request.POST['email'] + user['email'] = request.POST['email'].lower() user['pw_hash'] = auth_lib.bcrypt_gen_password_hash( request.POST['password']) user.save(validate=True) |