{#if loaded}
{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
{$i18n.t('Signing in')} {$i18n.t('to')} {$WEBUI_NAME}
{:else}
{ submitHandler(); }} >
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Sign up')} {$i18n.t('to')} {$WEBUI_NAME}
{#if mode === 'signup'}
ⓘ {$WEBUI_NAME} {$i18n.t( 'does not make any external connections, and your data stays securely on your locally hosted server.' )}
{/if}
{#if $config?.features.enable_login_form}
{#if mode === 'signup'}
{$i18n.t('Name')}
{/if}
{$i18n.t('Email')}
{$i18n.t('Password')}
{/if} {#if $config?.features.enable_login_form}
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}
{#if $config?.features.enable_signup}
{mode === 'signin' ? $i18n.t("Don't have an account?") : $i18n.t('Already have an account?')}
{ if (mode === 'signin') { mode = 'signup'; } else { mode = 'signin'; } }} > {mode === 'signin' ? $i18n.t('Sign up') : $i18n.t('Sign in')}
{/if}
{/if}
{#if Object.keys($config?.oauth?.providers ?? {}).length > 0}
{#if $config?.features.enable_login_form}
{$i18n.t('or')}
{/if}
{#if $config?.oauth?.providers?.google}
{ window.location.href = `${WEBUI_BASE_URL}/oauth/google/login`; }} >
{$i18n.t('Continue with {{provider}}', { provider: 'Google' })}
{/if} {#if $config?.oauth?.providers?.microsoft}
{ window.location.href = `${WEBUI_BASE_URL}/oauth/microsoft/login`; }} >
{$i18n.t('Continue with {{provider}}', { provider: 'Microsoft' })}
{/if} {#if $config?.oauth?.providers?.oidc}
{ window.location.href = `${WEBUI_BASE_URL}/oauth/oidc/login`; }} >
{$i18n.t('Continue with {{provider}}', { provider: $config?.oauth?.providers?.oidc ?? 'SSO' })}
{/if}
{/if}
{/if}
{/if}