Browse Source

[chore] Turn `accounts-registration-open` false by default (#2839)

pull/2841/head
tobi 2 years ago committed by GitHub
parent
commit
8b30709791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      docs/configuration/accounts.md
  2. 7
      example/config.yaml
  3. 2
      internal/config/defaults.go

7
docs/configuration/accounts.md

@ -9,10 +9,11 @@
# Config pertaining to creation and maintenance of accounts on the server, as well as defaults for new accounts.
# Bool. Do we want people to be able to just submit sign up requests, or do we want invite only?
# Bool. Allow people to submit new sign-up / registration requests via the form at /signup.
#
# Options: [true, false]
# Default: true
accounts-registration-open: true
# Default: false
accounts-registration-open: false
# Bool. Are sign up requests required to submit a reason for the request (eg., an explanation of why they want to join the instance)?
# Options: [true, false]

7
example/config.yaml

@ -406,10 +406,11 @@ instance-inject-mastodon-version: false
# Config pertaining to creation and maintenance of accounts on the server, as well as defaults for new accounts.
# Bool. Do we want people to be able to just submit sign up requests, or do we want invite only?
# Bool. Allow people to submit new sign-up / registration requests via the form at /signup.
#
# Options: [true, false]
# Default: true
accounts-registration-open: true
# Default: false
accounts-registration-open: false
# Bool. Are sign up requests required to submit a reason for the request (eg., an explanation of why they want to join the instance)?
# Options: [true, false]

2
internal/config/defaults.go

@ -66,7 +66,7 @@ var Defaults = Configuration{
InstanceDeliverToSharedInboxes: true,
InstanceLanguages: make(language.Languages, 0),
AccountsRegistrationOpen: true,
AccountsRegistrationOpen: false,
AccountsReasonRequired: true,
AccountsAllowCustomCSS: false,
AccountsCustomCSSLength: 10000,

Loading…
Cancel
Save