From fbdfce319016e75ca86f6463292b6611c26c1bef Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:00:21 +0200 Subject: [chore] Don't render sign-up form when registrations closed (#3001) --- internal/web/signup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/web') 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(), }, } -- cgit v1.2.3