diff options
Diffstat (limited to 'mediagoblin/auth')
-rw-r--r-- | mediagoblin/auth/lib.py | 4 | ||||
-rw-r--r-- | mediagoblin/auth/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/auth/lib.py b/mediagoblin/auth/lib.py index ee1ce12d..24992094 100644 --- a/mediagoblin/auth/lib.py +++ b/mediagoblin/auth/lib.py @@ -115,7 +115,7 @@ def send_verification_email(user, request): # TODO: There is no error handling in place send_email( mg_globals.app_config['email_sender_address'], - [user['email']], + [user.email], # TODO # Due to the distributed nature of GNU MediaGoblin, we should # find a way to send some additional information about the @@ -150,6 +150,6 @@ def send_fp_verification_email(user, request): # TODO: There is no error handling in place send_email( mg_globals.app_config['email_sender_address'], - [user['email']], + [user.email], 'GNU MediaGoblin - Change forgotten password!', rendered_email) diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index dab95b17..f8e84285 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -81,7 +81,7 @@ def register(request): # Create the user user = request.db.User() user.username = username - user['email'] = email + user.email = email user['pw_hash'] = auth_lib.bcrypt_gen_password_hash( request.POST['password']) user.save(validate=True) |