helios-server icon indicating copy to clipboard operation
helios-server copied to clipboard

how add admin user?

Open mnovoa opened this issue 4 years ago • 1 comments

Hello everyone

How do I add the administrator user? I don't want to connect it with google or another external service

Thank you

mnovoa avatar May 19 '20 21:05 mnovoa

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

itamarjp avatar Aug 29 '20 15:08 itamarjp