Browse Source

feat(gui): include reset password

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
f2fba09b70
  1. 9
      packages/nc-gui/components/admin/User.vue

9
packages/nc-gui/components/admin/User.vue

@ -123,7 +123,7 @@ const copyPasswordResetUrl = async (user: User) => {
<template> <template>
<div class="h-full overflow-y-scroll scrollbar-thin-dull pt-4"> <div class="h-full overflow-y-scroll scrollbar-thin-dull pt-4">
<a-tabs v-model:active-key="selectedTabKey" :open-keys="[]" mode="horizontal" class="nc-auth-tabs"> <a-tabs v-model:active-key="selectedTabKey" :open-keys="[]" mode="horizontal" class="nc-auth-tabs">
<a-tab-pane v-for="(tab, key) of [{ label: 'Users' }, { label: 'Settings' }]" :key="key" class="select-none"> <a-tab-pane v-for="(tab, key) of [{ label: 'Users' }, { label: 'Settings' }, { label: 'Reset Password' }]" :key="key" class="select-none">
<template #tab> <template #tab>
<span> <span>
{{ tab.label }} {{ tab.label }}
@ -265,13 +265,18 @@ const copyPasswordResetUrl = async (user: User) => {
<LazyAdminUsersModal :show="showUserModal" @closed="showUserModal = false" @reload="loadUsers" /> <LazyAdminUsersModal :show="showUserModal" @closed="showUserModal = false" @reload="loadUsers" />
</div> </div>
</template> </template>
<template v-else> <template v-else-if="1">
<div class="text-xl mt-4">Settings</div> <div class="text-xl mt-4">Settings</div>
<a-divider class="!my-3" /> <a-divider class="!my-3" />
<a-form-item> <a-form-item>
<a-checkbox name="virtual">Enable user signup</a-checkbox> <a-checkbox name="virtual">Enable user signup</a-checkbox>
</a-form-item> </a-form-item>
</template> </template>
<template v-else>
<div class="text-xl mt-4">Reset Password</div>
<a-divider class="!my-3" />
<LazyResetPassword/>
</template>
</div> </div>
</template> </template>

Loading…
Cancel
Save