mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac: conditionally display update password
This commit is contained in:
@@ -268,9 +268,11 @@
|
||||
|
||||
<hr class="border-gray-50 dark:border-gray-850 my-2" />
|
||||
|
||||
<div class="my-2">
|
||||
<UpdatePassword />
|
||||
</div>
|
||||
{#if $config?.features.enable_login_form}
|
||||
<div class="my-2">
|
||||
<UpdatePassword />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'}
|
||||
<div class="flex justify-between items-center text-sm mb-2">
|
||||
|
||||
Reference in New Issue
Block a user