-
Notifications
You must be signed in to change notification settings - Fork 11
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
Disabling user registration does not work #3
Comments
I've narrowed this down to https://github.com/rlidwka/sinopia-htpasswd/blob/master/index.js#L21 self._maxusers = self._config.max_users || self._sinopia_config.max_users if |
Thanks for finding it. But it is not a documentation bug. If you set "max_users" to 0, logically it should not allow more than a 0 users. Thus, it should disable registration. I think documentation is right here, and the issue needs to be fixed in the code itself. Fixed in 77a8fe3 , added a test in c22a8cd , please check that. |
Fixes #3: 0 is false in logical expressions
config:
adduser:
Result:
The text was updated successfully, but these errors were encountered: