helios-server
helios-server copied to clipboard
how add admin user?
Hello everyone
How do I add the administrator user? I don't want to connect it with google or another external service
Thank you
change the environment variable, to enable password authentication.
AUTH_ENABLED_AUTH_SYSTEMS=password
and then create your user/password using the way described in https://github.com/benadida/helios-server/issues/222
echo "from helios_auth.models import User; \
User.objects.create(user_type='password',user_id='${USER_EMAIL}', \
info={'name':'${USER_NAME}','password':'${USER_PASS}'}, admin_p=True)" | \
python manage.py shell