summaryrefslogtreecommitdiff
path: root/internal/web/signup.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-12 16:00:21 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-12 15:00:21 +0100
commitfbdfce319016e75ca86f6463292b6611c26c1bef (patch)
tree902b1496a6ddd83a506d7522d71dcc413e5afc7d /internal/web/signup.go
parentBump braces from 3.0.2 to 3.0.3 in /web/source (#2999) (diff)
downloadgotosocial-fbdfce319016e75ca86f6463292b6611c26c1bef.tar.xz
[chore] Don't render sign-up form when registrations closed (#3001)
Diffstat (limited to 'internal/web/signup.go')
-rw-r--r--internal/web/signup.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/web/signup.go b/internal/web/signup.go
index bc30749f8..a943f3680 100644
--- a/internal/web/signup.go
+++ b/internal/web/signup.go
@@ -58,7 +58,8 @@ func (m *Module) signupGETHandler(c *gin.Context) {
Instance: instance,
OGMeta: apiutil.OGBase(instance),
Extra: map[string]any{
- "reasonRequired": config.GetAccountsReasonRequired(),
+ "reasonRequired": config.GetAccountsReasonRequired(),
+ "registrationOpen": config.GetAccountsRegistrationOpen(),
},
}