Dot-Notation for Users.email

This commit is contained in:
Elrond
2011-11-14 17:22:33 +01:00
parent 5a4e3ff1e2
commit 809cbfc5ab
4 changed files with 5 additions and 5 deletions

View File

@@ -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)

View File

@@ -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)