Commit 0d5d71ae authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[utils/management] in install set user 'user' profile

parent d9cdd319
Pipeline #11653 passed with stage
......@@ -98,6 +98,12 @@ def add_user(name, passwd, token_key):
user.is_staff = True
user.is_superuser = True
user.save()
#set profile
user.profile.status = 'A'
user.profile.rejection_date = None
user.profile.supervision_key = None
user.profile.save()
user.save()
if name == passwd:
logger.info("Created user `%s' with password `%s'", name, passwd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment