{`${$WEBUI_NAME}`} { onboarding = false; mode = $config?.features.enable_ldap ? 'ldap' : 'signup'; }} />
{#if loaded}
logo
{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
{$i18n.t('Signing in to {{WEBUI_NAME}}', { WEBUI_NAME: $WEBUI_NAME })}
{:else}
{ e.preventDefault(); submitHandler(); }} >
{#if $config?.onboarding ?? false} {$i18n.t(`Get started with {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} {:else if mode === 'ldap'} {$i18n.t(`Sign in to {{WEBUI_NAME}} with LDAP`, { WEBUI_NAME: $WEBUI_NAME })} {:else if mode === 'signin'} {$i18n.t(`Sign in to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} {:else} {$i18n.t(`Sign up to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} {/if}
{#if $config?.onboarding ?? false}
ⓘ {$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 || $config?.features.enable_ldap}
{#if mode === 'signup'}
{$i18n.t('Name')}
{/if} {#if mode === 'ldap'}
{$i18n.t('Username')}
{:else}
{$i18n.t('Email')}
{/if}
{$i18n.t('Password')}
{/if}
{#if $config?.features.enable_login_form || $config?.features.enable_ldap} {#if mode === 'ldap'} {:else} {#if $config?.features.enable_signup && !($config?.onboarding ?? false)}
{mode === 'signin' ? $i18n.t("Don't have an account?") : $i18n.t('Already have an account?')}
{/if} {/if} {/if}
{#if Object.keys($config?.oauth?.providers ?? {}).length > 0}

{#if $config?.features.enable_login_form || $config?.features.enable_ldap} {$i18n.t('or')} {/if}
{#if $config?.oauth?.providers?.google} {/if} {#if $config?.oauth?.providers?.microsoft} {/if} {#if $config?.oauth?.providers?.oidc} {/if}
{/if} {#if $config?.features.enable_ldap && $config?.features.enable_login_form}
{/if}
{/if}
{/if}