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) --- web/template/sign-up.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web') 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 -- cgit v1.2.3