From: Christopher Allan Webber Date: Fri, 12 Aug 2011 01:34:12 +0000 (-0500) Subject: Also normalize user's emails to .lower() when we accept the user. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=873e4e9d2da8a3976de6c44838f517cfc314d620;p=mediagoblin.git Also normalize user's emails to .lower() when we accept the user. --- 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)