summaryrefslogtreecommitdiff
path: root/packages/client/src/pages/admin
diff options
context:
space:
mode:
authorAndreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>2022-07-13 14:23:20 +0200
committerGitHub <noreply@github.com>2022-07-13 21:23:20 +0900
commit53227d76d6b3395fc9d7aa829e58f4191da768fe (patch)
tree9fa62a5978964aeb396589dde0c19b1feb665849 /packages/client/src/pages/admin
parentchore(dev): add note (diff)
downloadsharkey-53227d76d6b3395fc9d7aa829e58f4191da768fe.tar.gz
sharkey-53227d76d6b3395fc9d7aa829e58f4191da768fe.tar.bz2
sharkey-53227d76d6b3395fc9d7aa829e58f4191da768fe.zip
fix(client): hide bot protection warning with disabled registrations (#8794)
* fix(client): hide bot protection warning with disabled registrations * Apply review suggestion from @Johann150 Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/client/src/pages/admin')
-rw-r--r--packages/client/src/pages/admin/index.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue
index f0ac5b3fc9..d82880c34a 100644
--- a/packages/client/src/pages/admin/index.vue
+++ b/packages/client/src/pages/admin/index.vue
@@ -58,7 +58,7 @@ let view = $ref(null);
let el = $ref(null);
let pageProps = $ref({});
let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail);
-let noBotProtection = !instance.enableHcaptcha && !instance.enableRecaptcha;
+let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha;
let noEmailServer = !instance.enableEmail;
let thereIsUnresolvedAbuseReport = $ref(false);