Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Admin User #206

Closed
pierreozoux opened this issue Jun 19, 2015 · 3 comments
Closed

Create Admin User #206

pierreozoux opened this issue Jun 19, 2015 · 3 comments

Comments

@pierreozoux
Copy link
Contributor

I see form the logs that there is an admin user that is automatically created.

Is it the excepted behavior for production environment?
Can I set it up from ENV variable?
How can I delete it from a production environment?
How can I change the password?

Thanks for your answers :)

@engelgabriel
Copy link
Member

If a ADMIN_PASS is provided during the installation, we should create an admin user with that password, otherwise, the first user to register should be the admin user.
Depends on #222

@engelgabriel engelgabriel changed the title admin user Admin User Jun 30, 2015
@engelgabriel engelgabriel modified the milestones: v0.5, v1.0 Jun 30, 2015
@engelgabriel engelgabriel changed the title Admin User Create Admin User Jun 30, 2015
@pierreozoux
Copy link
Contributor Author

I'm totally fine with first user registered is the admin.
But yeah, the best way would be to create the admin on the first run with ADMIN_PASS, ADMIN_EMAIL.

@marceloschmidt
Copy link
Member

I've created this. If you run with ADMIN_PASS and ADMIN_EMAIL, server will look for an admin user or another user with provided e-mail. If none is found, admin user is inserted. We need to update README accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants