summaryrefslogtreecommitdiff
path: root/web
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 /web
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 'web')
-rw-r--r--web/template/sign-up.tmpl5
1 files changed, 5 insertions, 0 deletions
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 @@
<main>
<section class="with-form" aria-labelledby="sign-up">
<h2 id="sign-up">Sign up for an account on {{ .instance.Title -}}</h2>
+ {{- if not .registrationOpen }}
+ <p>This instance is not currently open to new sign-ups.</p>
+ {{- else }}
<form action="/signup" method="POST">
<div class="labelinput">
<label for="email">Email</label>
@@ -40,6 +43,7 @@
name="password"
required
placeholder="Please enter your desired password"
+ autocomplete="new-password"
>
</div>
<div class="labelinput">
@@ -88,6 +92,7 @@
<input type="hidden" name="locale" value="en">
<button type="submit" class="btn btn-success">Submit</button>
</form>
+ {{- end }}
</section>
</main>
{{- end }} \ No newline at end of file