milesmcc / shynet

Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Apache License 2.0
2.89k stars 183 forks source link

Reset password #275

Closed Aesistril closed 1 year ago

Aesistril commented 1 year ago

How can I reset my password? The reset password button doesn't work because I didn't setup an SMTP server. I have full access to the server running shynet

haaavk commented 1 year ago
  1. Open bash inside docker image (docker exec -it CONTAINER_ID bash)
  2. Open django interactive shell (python manage.py shell)
  3. Import user model (from core.models import User)
  4. Select user (u = User.objects.filter(email='USER_EMAIL').first())
  5. Change password (u.set_password('NEW_PASSWORD'))
  6. Save changes (u.save())
milesmcc commented 1 year ago

Thanks @haaavk!