Skip to content
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

EJABBERD_REGISTER_ADMIN_ONLY option is true by default #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Please take a note of the format: `@all@@example.ninja`. You need to specify not
- **EJABBERD_MOD_MUC_ADMIN**: Activate the mod_muc_admin module. Defaults to `false`.
- **EJABBERD_MUC_CREATE_ADMIN_ONLY**: Only allow admins to create rooms. Defaults to `false`.
- **EJABBERD_MOD_ADMIN_EXTRA**: Activate the mod_admin_extra module. Defaults to `true`.
- **EJABBERD_REGISTER_ADMIN_ONLY**: Only allow admins to register users. Defaults to `false`.
- **EJABBERD_REGISTER_ADMIN_ONLY**: Only allow admins to register users. Defaults to `true`.
- **EJABBERD_REGISTER_TRUSTED_NETWORK_ONLY**: Only allow user registration from the trusted_network access rule. Defaults to `true`.
- **EJABBERD_MOD_VERSION**: Activate the mod_version module. Defaults to `true`.
- **EJABBERD_SOURCE_MODULES**: List of modules, which will be installed from sources localized in ${EJABBERD_HOME}/module_source.
Expand Down
2 changes: 1 addition & 1 deletion conf/ejabberd.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ access:
local: allow
## In-band registration allows registration of any possible username.
register:
{%- if env['EJABBERD_REGISTER_ADMIN_ONLY'] == "true" %}
{%- if env.get('EJABBERD_REGISTER_ADMIN_ONLY', "true") == "true" %}
all: deny
admin: allow
{% else %}
Expand Down