Setting status to active when adding users with ./bin/gmg adduser

This commit is contained in:
Christopher Allan Webber 2011-06-22 22:16:50 -05:00
parent 8781ddb541
commit a3fae1bd07

View File

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