[BUG] Can't get my password back
Closed this issue ยท 7 comments
๐ Note: Please search existing issues before filing a new one. This helps avoid duplicates and ensures we can address your concern efficiently!
๐ Bug Description
I forgot my password. I try to reset the password but I don't an email. The logs look good
๐ Steps to Reproduce
Steps to reproduce the behavior:
- Click on "Forgot Password"
- Enter your password
- Wait
- Don't receive the error
โ Expected Behavior
I receive an email to reset my password
๐ธ Screenshots / Logs
- Attach screenshots if it helps explain the problem.
- If possible, include relevant log excerpts (be sure to remove sensitive info).
๐ณ Environment Details
- Platform: Docker
- Install Method: Docker Compose
- AdventureLog Version: Not sure. Latest image
- Reverse Proxy: None
If using Docker and the issue is related to the container, it may be helpful to include your docker-compose.yml or relevant variables below.
๐ Additional Context
I know for sure that I have an existing account since I was using it before. I was just asay for some weeks and forgot
May be related to my database. Is there another way to get fet back the password?
Hi there @ChristopheRoyer21,
Do you have email services connected to the containers in the config? If not, when you enter the email for password reset it will print to the logs of the backend container along with a URL to reset.
If you need another option, you can docker exec into the backend container, and run python manage.py createsuperuser to login to the admin panel. You can then manually change the password for the other user in the admin panel.
Let me know if you have any questions about this!
Thanks for the tips!
Unfortunately, the logs in the backend simply says that it doesn't recognize the email. I tried my two emails and they both didn't work. Is it possible tha I lost everything?
Here is my config?
services:
web:
#build: ./frontend/
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
container_name: adventurelog-frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-6044}:3000"
depends_on:
- server
environment:
- PUBLIC_SERVER_URL=${PUBLIC_SERVER_URL}
- ORIGIN=${ORIGIN}
- BODY_SIZE_LIMIT=${BODY_SIZE_LIMIT}
db:
image: tobi312/rpi-postgresql-postgis:15-3.3-alpine-arm
container_name: adventurelog-db
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
server:
#build: ./backend/
image: ghcr.io/seanmorley15/adventurelog-backend:latest
container_name: adventurelog-backend
restart: unless-stopped
ports:
- "${BACKEND_PORT:-7044}:80"
depends_on:
- db
volumes:
- adventurelog_media:/code/media/
environment:
- PGHOST=${PGHOST}
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- SECRET_KEY=${SECRET_KEY}
- DJANGO_ADMIN_USERNAME=${DJANGO_ADMIN_USERNAME}
- DJANGO_ADMIN_PASSWORD=${DJANGO_ADMIN_PASSWORD}
- DJANGO_ADMIN_EMAIL=${DJANGO_ADMIN_EMAIL}@email
- DISABLE_REGISTRATION=${DISABLE_REGISTRATION}
- PUBLIC_URL=${PUBLIC_URL}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
- FRONTEND_URL=${FRONTEND_URL}
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}
volumes:
postgres_data:
adventurelog_media:
Of course, all avriables are defined in portainer.
That's weird, config doesn't seem to be the problem. Are you able to try the method of creating a superuser and doing it in the admin panel?
Oh actually, I've just found a way to connect! I used he DJANGO username and password I setted inside the config. Seems like they are not relatd to any email so I cannot "retreive" them, unless I look at the configs
Gotcha! By default there is not email on the first account unless one is added. So you were able to log back in?
Yes I managed to! Glad to here there is no email. I guess I just didn't remember it since it's been so long. Thanks!
Awesome! Glad to hear it's all set now