From 5713d4b1aec57b011314b2f0446a65d976f28542 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 22 Oct 2022 21:31:08 +0200 Subject: [PATCH 1/2] Hide register page when registrations are closed - Improve UX for "private" instances. --- templates/auth/register/index.html | 11 ++++++++++ templates/auth/register/main.scss | 32 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 templates/auth/register/main.scss diff --git a/templates/auth/register/index.html b/templates/auth/register/index.html index bdf24305..3d991658 100644 --- a/templates/auth/register/index.html +++ b/templates/auth/register/index.html @@ -8,6 +8,16 @@ class="auth__logo" alt="mcaptcha logo" /> + <. if !crate::SETTINGS.allow_registration { .> + + + + + + + +
Registration closed
This mCaptcha instance is closed for registrations.
+ <. } else {.>