Wingysam / Christmas-Community

Christmas lists for families
GNU Affero General Public License v3.0
212 stars 39 forks source link

How to set an initial admin password #70

Closed indigo423 closed 1 year ago

indigo423 commented 1 year ago

When I start the docker-compose stack, I get a login prompt but I haven't found a way to set up an admin user with a password. I've run the docker-compose.yaml stack here from the repository. When I get to / I get automatically redirected to the /login prompt. Any hints are appreciated.

Wingysam commented 1 year ago

If there are no users in the database when you visit /, you're given the form to create the admin user. If you have a blank instance and somehow have an empty admin user, consider just deleting the data directory and restarting.

Wingysam commented 1 year ago

@indigo423 any update on this?

indigo423 commented 1 year ago

I've got it to work. I've just given it another spin today with the latest image and it works as expected.

Thanks for your help and the quick feedback and happy new year!