Просмотр исходного кода

Merge pull request #1743 from yncyrydybyl/master

This adds a variable for requiring MSC3231 token for registration
pull/1744/head
Slavi Pantaleev 3 лет назад
committed by GitHub
Родитель
Сommit
e51cc2a7a3
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
2 измененных файлов: 8 добавлений и 1 удалений
  1. +5
    -0
      roles/matrix-synapse/defaults/main.yml
  2. +3
    -1
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 5
- 0
roles/matrix-synapse/defaults/main.yml Просмотреть файл

@@ -210,6 +210,11 @@ matrix_synapse_enable_registration_captcha: false
matrix_synapse_recaptcha_public_key: ''
matrix_synapse_recaptcha_private_key: ''

# Requires an MSC3231 token for registration. Note that `matrix_synapse_enable_registration` must be set to `true`.
# Tokens can be created via the API or through synapse-admin.
# Disabling this option will not delete any tokens previously generated.
matrix_synapse_registration_requires_token: false

# Allows non-server-admin users to create groups on this server
matrix_synapse_enable_group_creation: false



+ 3
- 1
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

@@ -1373,7 +1373,9 @@ allowed_local_3pids: {{ matrix_synapse_allowed_local_3pids|to_json }}
# Disabling this option will not delete any tokens previously generated.
# Defaults to false. Uncomment the following to require tokens:
#
#registration_requires_token: true
registration_requires_token: {{ matrix_synapse_registration_requires_token|to_json }}



# If set, allows registration of standard or admin accounts by anyone who
# has the shared secret, even if registration is otherwise disabled.


Загрузка…
Отмена
Сохранить