Giter Site home page Giter Site logo

User management & admin user about docker HOT 3 CLOSED

anonaddy avatar anonaddy commented on May 22, 2024
User management & admin user

from docker.

Comments (3)

crazy-max avatar crazy-max commented on May 22, 2024

@slurdge

As far as I know, the first user isn't really "admin".

Admin username is managed through ANONADDY_ADMIN_USERNAME env var.

Therefore the command to seed the db should probably renamed to "add users" and take user & password as arguments (or a file containing them).

I prefer to let the user create the initial user via the db:seed command for now because there is no other way to do that programmatically. I think it would be better to open an issue on the official repository to have an install command through php artisan like flarum does.

from docker.

slurdge avatar slurdge commented on May 22, 2024

I agree overall with the approach. Per the maintainer of the official repository, the ANONADDY_ADMIN_USERNAME env file should be set after the db:seed (in case you change the username). So either db::seed takes into account the env variable, or it should be as hardcoded as the db:seed command.

I put the issue here because the php file for seeding is included in the docker image (I suppose you derived it from upstream), so I though it would be needed to change here.

from docker.

crazy-max avatar crazy-max commented on May 22, 2024

I put the issue here because the php file for seeding is included in the docker image (I suppose you derived it from upstream), so I though it would be needed to change here.

It's a dirty workaround ;)

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.