Admin email changing in self-hosted instance without authentication #1224
Unanswered
JokerQyou
asked this question in
Self-Hosted Support
Replies: 2 comments 2 replies
-
I don't understand, this is not a "self-hosted support", as I have already solved this issue in my own instance. I described a configuration flaw in your product, which mostly affect self-hosting users. This is clearly a bug. Does Plausible not accept any bug report originated from self-hosting users? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I wonder if it's even confirmed as a bug? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Past Issues Searched
Issue is a Bug Report
Describe the bug
If a user self-hosted Plausible, and set admin email via environment variable
ADMIN_USER_EMAIL
, disabled authentication viaDISABLE_AUTH
, and later he modified his email via the web interface, then he will not be able to login after a logout. The following behavior was observed:myinstance.com/
would result in 500 error page.myinstance.com/sites
would redirect to/login
, despiteDISABLE_AUTH
being set totrue
.Upon further investigation, it seems that
DISABLE_AUTH
is handled by a plugin calledauto_auth
, which essentially logs the admin in by using the admin email and admin password. However, these values are retrieved from environment variable rather than from database. So only after a modification to theADMIN_USER_EMAIL
environment variable and a restart (recreation of the container), will the user be able to view the site list normally.Expected behavior
The user should be able to view the site list page directly after changing his email address via web interface.
Screenshots
No response
Environment
Beta Was this translation helpful? Give feedback.
All reactions