Unable to disable registration
fkammer opened this issue · comments
Even though the environment variable APP_DISABLE_REGISTRATION
is set to true
I can create new user accounts.
To Reproduce
Steps to reproduce the behavior:
- Set environment variable
APP_DISABLE_REGISTRATION
totrue
- Go to http://heyform.local/login
- Click on "create an account"
- Fill out and submit form
Expected behavior
- There shouldn't be an option to create an account
- Account creation should be blocked
Screenshots
# inside docker container
/app # env | grep APP_DISABLE_REGISTRATION
APP_DISABLE_REGISTRATION=true
HeyForm:
- Install:
self hosted
- Version:
docker.io/heyform/community-edition@sha256:6f1b976464fe2aea8d2dbd9d565dccb81e9b219b82ff82720cac225e69a82072
Desktop:
- OS: MacOS
- Browser: Chrome
- Version: 123.0.6312.107
Nevermind. Looks like the feature was added 3 days ago but the last build is 4 days old. I'll build the container myself until a new release is ready.
Thanks for this awesome project btw!
@iMuFeng Hi, the ENV works as told by fkammer but it could be cool to not display the "create account link" at all.
Because now you can click on create account, fill the form, and get the "registration disabled error", it feels weird and frustrating. It would be a better user experience to not being able to see the form at all please :)