Setting status to active when adding users with ./bin/gmg adduser
This commit is contained in:
parent
8781ddb541
commit
a3fae1bd07
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user