@@ -100,12 +100,7 @@
|
||||
}"
|
||||
>{{ t("Didn't receive the instructions?") }}</o-button
|
||||
>
|
||||
<p
|
||||
class="control"
|
||||
v-if="
|
||||
config && config.registrationsOpen && config.registrationsAllowlist
|
||||
"
|
||||
>
|
||||
<p class="control" v-if="canRegister">
|
||||
<o-button
|
||||
tag="router-link"
|
||||
variant="text"
|
||||
@@ -171,6 +166,13 @@ const { result: configResult } = useQuery<{
|
||||
|
||||
const config = computed(() => configResult.value?.config);
|
||||
|
||||
const canRegister = computed(() => {
|
||||
return (
|
||||
(config.value?.registrationsOpen || config.value?.registrationsAllowlist) &&
|
||||
config.value?.auth.databaseLogin
|
||||
);
|
||||
});
|
||||
|
||||
const errors = ref<string[]>([]);
|
||||
const submitted = ref(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user