From d6ccdeb2b77dffb9ec7933d573218cd05e479b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 22 Mar 2021 09:39:00 +0100 Subject: [PATCH] Fix refactoring use of .env variables after Moriz suggestions --- webapp/pages/registration.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/pages/registration.vue b/webapp/pages/registration.vue index 3502f65b5..788e0a1f4 100644 --- a/webapp/pages/registration.vue +++ b/webapp/pages/registration.vue @@ -25,8 +25,8 @@ export default { nonce, }, }, - publicRegistration: this.$env.PUBLIC_REGISTRATION === 'true', // for 'false' in .env PUBLIC_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling - inviteRegistration: this.$env.INVITE_REGISTRATION === 'true', // for 'false' in .env INVITE_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling + publicRegistration: this.$env.PUBLIC_REGISTRATION === true, // for 'false' in .env PUBLIC_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling + inviteRegistration: this.$env.INVITE_REGISTRATION === true, // for 'false' in .env INVITE_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling } }, asyncData({ store, redirect }) {