mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
enh: jwt_expires_in security warning
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
This commit is contained in:
parent
2a34a0ae10
commit
91a43848a1
1 changed files with 20 additions and 0 deletions
|
|
@ -399,6 +399,26 @@
|
||||||
>{$i18n.t("'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.")}</span
|
>{$i18n.t("'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.")}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if adminConfig.JWT_EXPIRES_IN === '-1'}
|
||||||
|
<div class="mt-2 text-xs">
|
||||||
|
<div
|
||||||
|
class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-lg px-3 py-2"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<span class=" font-medium">{$i18n.t('Warning')}:</span>
|
||||||
|
<span
|
||||||
|
><a
|
||||||
|
href="hhttps://docs.openwebui.com/getting-started/env-configuration#jwt_expires_in"
|
||||||
|
target="_blank"
|
||||||
|
class=" underline"
|
||||||
|
>{$i18n.t('No expiration can pose security risks.')}
|
||||||
|
</a></span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" space-y-3">
|
<div class=" space-y-3">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue