From 8b307097914374f3db30f1253b864bd45d05f10b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:41:15 +0200 Subject: [PATCH] [chore] Turn `accounts-registration-open` false by default (#2839) --- docs/configuration/accounts.md | 7 ++++--- example/config.yaml | 7 ++++--- internal/config/defaults.go | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/configuration/accounts.md b/docs/configuration/accounts.md index 4826cfb7a..41fb3eaa9 100644 --- a/docs/configuration/accounts.md +++ b/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] diff --git a/example/config.yaml b/example/config.yaml index 1127b6d46..b5e0fe57f 100644 --- a/example/config.yaml +++ b/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] diff --git a/internal/config/defaults.go b/internal/config/defaults.go index ceb8068b7..64fff366a 100644 --- a/internal/config/defaults.go +++ b/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,