heyform / heyform

HeyForm is an open-source form builder that allows anyone to create engaging conversational forms for surveys, questionnaires, quizzes, and polls. No coding skills required.

Home Page:https://heyform.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Set environment variable APP_DISABLE_REGISTRATION to true
  2. Go to http://heyform.local/login
  3. Click on "create an account"
  4. Fill out and submit form

Expected behavior

  1. There shouldn't be an option to create an account
  2. 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 :)