LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
7.01k stars 309 forks source link

Forgot my user password. #596

Open yotama9 opened 2 years ago

yotama9 commented 2 years ago

Hi.

I have a librephotos installed on a local machine and for some reason I've managed to both forget my password and not store it in my password manager. Short of installing again librephotos, is there anything I can do?

derneuere commented 2 years ago

You can use this manage.py command to update the password again: https://github.com/LibrePhotos/librephotos/blob/dev/api/management/commands/createadmin.py

yotama9 commented 2 years ago

Hmmm...

I forgot to mention that I oue librephotos on docker. Where do I find the manage.py file?

Matthijz98 commented 2 years ago

You need to run the commands inside the docker container. I do not know if you use docker on windows linux or a NAS. But the steps for the terminal are: Find the id of the docker container: Run docker container ls this will return a list of all the containers find the container of that is running librephotos and copy the id Then run docker exec -it [your container id] /bin/bash now you should have a session inside your docker container For more info see the docker exec docs

galinowski commented 1 year ago

Thanks for the info above, just for future reference, this is what worked for me on Docker:

  1. docker container ls
  2. docker exec -it ID /bin/bash (where ID is the id of reallibrephotos/librephotos:latest in the previous command)
  3. python manage.py changepassword USERNAME