aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/users.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-22 22:16:50 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-22 22:16:50 -0500
commita3fae1bd073305a3f096f862de657770a072cdf5 (patch)
treef34fc0376b65a095f8c0badc2eed1c53e86fe8cc /mediagoblin/gmg_commands/users.py
parent8781ddb5415c00218a3a7ca4d1d6e54310f579fd (diff)
downloadmediagoblin-a3fae1bd073305a3f096f862de657770a072cdf5.tar.lz
mediagoblin-a3fae1bd073305a3f096f862de657770a072cdf5.tar.xz
mediagoblin-a3fae1bd073305a3f096f862de657770a072cdf5.zip
Setting status to active when adding users with ./bin/gmg adduser
Diffstat (limited to 'mediagoblin/gmg_commands/users.py')
-rw-r--r--mediagoblin/gmg_commands/users.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/gmg_commands/users.py b/mediagoblin/gmg_commands/users.py
index 79392def..3709b61f 100644
--- a/mediagoblin/gmg_commands/users.py
+++ b/mediagoblin/gmg_commands/users.py
@@ -37,6 +37,7 @@ def adduser(args):
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'
entry['email_verified'] = True
entry.save(validate=True)