Dot-Notation for Users.username

This commit is contained in:
Elrond
2011-11-14 15:39:57 +01:00
parent 5b5b67cd5c
commit 5a4e3ff1e2
14 changed files with 28 additions and 28 deletions

View File

@@ -50,7 +50,7 @@ def adduser(args):
else:
# Create the user
entry = db.User()
entry['username'] = unicode(args.username.lower())
entry.username = unicode(args.username.lower())
entry['email'] = unicode(args.email)
entry['pw_hash'] = auth_lib.bcrypt_gen_password_hash(args.password)
entry['status'] = u'active'