librephotos icon indicating copy to clipboard operation
librephotos copied to clipboard

Forgot my user password.

Open yotama9 opened this issue 2 years ago • 3 comments

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?

yotama9 avatar Aug 09 '22 16:08 yotama9

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

derneuere avatar Aug 09 '22 16:08 derneuere

Hmmm...

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

yotama9 avatar Aug 20 '22 09:08 yotama9

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

Matthijz98 avatar Sep 05 '22 20:09 Matthijz98

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

galinowski avatar Dec 16 '22 15:12 galinowski