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(), }, } diff --git a/web/template/sign-up.tmpl b/web/template/sign-up.tmpl index 58a65a2ea..556486bf3 100644 --- a/web/template/sign-up.tmpl +++ b/web/template/sign-up.tmpl @@ -21,6 +21,9 @@

Sign up for an account on {{ .instance.Title -}}

+ {{- if not .registrationOpen }} +

This instance is not currently open to new sign-ups.

+ {{- else }}
@@ -40,6 +43,7 @@ name="password" required placeholder="Please enter your desired password" + autocomplete="new-password" >
@@ -88,6 +92,7 @@ + {{- end }}
{{- end }} \ No newline at end of file