Skip to content

[Question]: After on-premise, how do I unregister the button to prevent unauthorised people from using it? #6627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
hzjackq opened this issue Mar 28, 2025 · 2 comments
Labels
🙋‍♀️ question Further information is requested

Comments

@hzjackq
Copy link

hzjackq commented Mar 28, 2025

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

env文件中修改了
REGISTER_ENABLED=0
似乎无效

@hzjackq hzjackq added the 🙋‍♀️ question Further information is requested label Mar 28, 2025
Copy link

dosubot bot commented Mar 28, 2025

Hello @hzjackq! I'm here to help you with any bugs, questions, or contributions. I'll do my best to assist you while we wait for a human maintainer.

To unregister the button and prevent unauthorized use after setting REGISTER_ENABLED=0 in the env file, ensure that the registerEnabled variable correctly reflects the configuration. The code snippet shows that registerEnabled is determined by config?.registerEnabled !== 0. Verify that the config object is correctly populated with the environment variable value. If REGISTER_ENABLED=0 is set, registerEnabled should be false, and the button should not allow registration.

const { config } = useSystemConfig();
const registerEnabled = config?.registerEnabled !== 0;

Ensure that the useSystemConfig hook correctly fetches the configuration and that the environment variable is properly loaded into the config object. If the issue persists, check the implementation of useSystemConfig to confirm it retrieves the environment variable correctly [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@10Andrea10
Copy link
Contributor

Hi @hzjackq , did you find any solution to prevent people from registering? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋‍♀️ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants