aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/users.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-11-14 17:22:33 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:57 +0100
commit809cbfc5ab3c999f357c0b4e7b6c89e8a36dc6d2 (patch)
tree5c0c41e4b006a3dbdd6d0a926f4b81a73e91a577 /mediagoblin/gmg_commands/users.py
parent5a4e3ff1e2a0f2ed451bc191c1d44bcd694b8e75 (diff)
downloadmediagoblin-809cbfc5ab3c999f357c0b4e7b6c89e8a36dc6d2.tar.lz
mediagoblin-809cbfc5ab3c999f357c0b4e7b6c89e8a36dc6d2.tar.xz
mediagoblin-809cbfc5ab3c999f357c0b4e7b6c89e8a36dc6d2.zip
Dot-Notation for Users.email
Diffstat (limited to 'mediagoblin/gmg_commands/users.py')
-rw-r--r--mediagoblin/gmg_commands/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/users.py b/mediagoblin/gmg_commands/users.py
index e8426272..04d88e23 100644
--- a/mediagoblin/gmg_commands/users.py
+++ b/mediagoblin/gmg_commands/users.py
@@ -51,7 +51,7 @@ def adduser(args):
# Create the user
entry = db.User()
entry.username = unicode(args.username.lower())
- entry['email'] = unicode(args.email)
+ entry.email = unicode(args.email)
entry['pw_hash'] = auth_lib.bcrypt_gen_password_hash(args.password)
entry['status'] = u'active'
entry['email_verified'] = True