ever-traduora icon indicating copy to clipboard operation
ever-traduora copied to clipboard

TR_SIGNUPS_ENABLED=false does not work

Open Clearmist opened this issue 2 years ago • 0 comments

Describe the bug I am running Traduora from source and have its environment variables set by exporting them in .bashrc. I am trying to disallow new users from creating accounts.

I have tried not having TR_SIGNUPS_ENABLED set at all, having it set to "false", and having it set to false. After restarting the process, in no case does this prevent me from /signup endpoint.

The language in the documentation has poor grammar so I'm not sure if this is even the appropriate environment variable. The description in the documentation reads, "If enabled, users can sign in for".

Here is another issue, but the user's solution was not detailed. #176

To Reproduce Steps to reproduce the behavior:

  1. Clone the Traduora repository.
  2. Set your environment variables in your bash profile file to allow connection to your local MariaDB/MySQL server.
  3. Set export TR_SIGNUPS_ENABLED="false" in your bash profile then reload using source ~/.bashrc
  4. Start the Traduora process with bin/start.sh.

Expected behavior Going to the /signup endpoint should result in an error or the signup link should not be present at all.

** Environment (please complete the following information):**

  • Device: System76
  • OS: Pop_OS! 21.10
  • Browser: Firefox
  • Traduora version: 0.19.0

Clearmist avatar Jan 19 '22 23:01 Clearmist