Fix: don't show register if new users not allowed (#3010)

* enforce allow new user flag on UI
* chore: bundle
* ensure we get a boolean

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Tiago Vasconcelos
2025-03-03 12:53:58 +01:00
committed by GitHub
co-authored by dni ⚡
parent c5964436b5
commit fe9b62e8a8
5 changed files with 30 additions and 9 deletions
+4 -1
View File
@@ -1259,7 +1259,7 @@
</q-form>
</q-card-section>
<!-- REGISTER -->
<q-card-section v-if="authAction === 'register'">
<q-card-section v-if="allowed_new_users && authAction === 'register'">
<q-form @submit="register" class="q-gutter-sm">
<q-input
dense
@@ -1302,6 +1302,9 @@
</div>
</q-form>
</q-card-section>
<q-card-section v-else-if="!allowed_new_users && authAction === 'register'">
<h5 class="text-center" v-text="$t('new_user_not_allowed')"></h5>
</q-card-section>
<slot></slot>
<!-- RESET -->
<q-card-section v-if="authAction === 'reset'">