mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Allow preventing guest registration (#2199)
* Allow disabling guest registration separately * Update sample config * Set `guests_disabled` to `true` in the sample config
This commit is contained in:
parent
5dd203fde3
commit
e1eb5807b6
3 changed files with 15 additions and 0 deletions
|
@ -18,6 +18,10 @@ type ClientAPI struct {
|
|||
// If set, allows registration by anyone who also has the shared
|
||||
// secret, even if registration is otherwise disabled.
|
||||
RegistrationSharedSecret string `yaml:"registration_shared_secret"`
|
||||
// If set, prevents guest accounts from being created. Only takes
|
||||
// effect if registration is enabled, otherwise guests registration
|
||||
// is forbidden either way.
|
||||
GuestsDisabled bool `yaml:"guests_disabled"`
|
||||
|
||||
// Boolean stating whether catpcha registration is enabled
|
||||
// and required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue