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:
co-authored by
dni ⚡
parent
c5964436b5
commit
fe9b62e8a8
@@ -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'">
|
||||
|
||||
Reference in New Issue
Block a user