Also normalize user's emails to .lower() when we accept the user.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Aug 2011 01:34:12 +0000 (20:34 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Aug 2011 01:34:12 +0000 (20:34 -0500)
mediagoblin/auth/views.py

index 61164be84aa781f2c00b785da2b7304da4129abc..91599e47d2ef30a00a6ee3bd352e3361ff92ef1c 100644 (file)
@@ -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)