From 6f4895b8cf3aface2775a3d39fec75cdbb927a41 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 6 Jun 2024 22:09:19 +0200 Subject: [PATCH] chore(auth): show registration disabled message when registration is disabled The route still exists when the registration is disabled, even though all links to the page are removed. --- frontend/src/i18n/lang/en.json | 3 ++- frontend/src/views/user/Register.vue | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index ada85a81f..b92b988ad 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -66,7 +66,8 @@ "hidePassword": "Hide the password", "noAccountYet": "Don't have an account yet?", "alreadyHaveAnAccount": "Already have an account?", - "remember": "Stay logged in" + "remember": "Stay logged in", + "registrationDisabled": "Registration is disabled." }, "settings": { "title": "Settings", diff --git a/frontend/src/views/user/Register.vue b/frontend/src/views/user/Register.vue index a2c46384f..b17c39839 100644 --- a/frontend/src/views/user/Register.vue +++ b/frontend/src/views/user/Register.vue @@ -1,5 +1,5 @@