mod redirect

This commit is contained in:
l.gabrysiak 2025-03-01 13:23:25 +01:00
parent 2a3ec7be16
commit 0a330c4d93
1 changed files with 4 additions and 3 deletions

View File

@ -49,6 +49,10 @@
const redirectPath = querystringValue('redirect') || '/'; const redirectPath = querystringValue('redirect') || '/';
goto(redirectPath); goto(redirectPath);
} }
else
{
goto(`${WEBUI_BASE_URL}/oauth/oidc/login`);
}
}; };
const signInHandler = async () => { const signInHandler = async () => {
@ -398,9 +402,6 @@
<span>{$i18n.t('Continue with {{provider}}', { provider: 'GitHub' })}</span> <span>{$i18n.t('Continue with {{provider}}', { provider: 'GitHub' })}</span>
</button> </button>
{/if} {/if}
{#if $config?.oauth?.providers?.oidc}
goto(`${WEBUI_BASE_URL}/oauth/oidc/login`);
{/if}
{#if $config?.oauth?.providers?.oidc} {#if $config?.oauth?.providers?.oidc}
<button <button
class="flex justify-center items-center bg-gray-700/5 hover:bg-gray-700/10 dark:bg-gray-100/5 dark:hover:bg-gray-100/10 dark:text-gray-300 dark:hover:text-white transition w-full rounded-full font-medium text-sm py-2.5" class="flex justify-center items-center bg-gray-700/5 hover:bg-gray-700/10 dark:bg-gray-100/5 dark:hover:bg-gray-100/10 dark:text-gray-300 dark:hover:text-white transition w-full rounded-full font-medium text-sm py-2.5"