From b9e637ee2bf5ed82c02626a5f87477780e389b0a Mon Sep 17 00:00:00 2001 From: alexey_rechkalov Date: Thu, 21 Nov 2024 18:09:40 +0500 Subject: [PATCH] Now ENABLE_LOGIN_FORM=False disabling only email form. LDAP form will be showed instead. Also added "name" property to inputs for Chrome autocompletion. --- src/routes/auth/+page.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index f40307816..2148061e7 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -203,7 +203,7 @@ {/if} - {#if $config?.features.enable_login_form} + {#if $config?.features.enable_login_form || $config?.features.enable_ldap}
{#if mode === 'signup'}
@@ -227,6 +227,7 @@ type="text" class="my-0.5 w-full text-sm outline-none bg-transparent" autocomplete="username" + name="username" placeholder={$i18n.t('Enter Your Username')} required /> @@ -239,6 +240,7 @@ type="email" class="my-0.5 w-full text-sm outline-none bg-transparent" autocomplete="email" + name="email" placeholder={$i18n.t('Enter Your Email')} required /> @@ -254,13 +256,14 @@ class="my-0.5 w-full text-sm outline-none bg-transparent" placeholder={$i18n.t('Enter Your Password')} autocomplete="current-password" + name="current-password" required />
{/if}
- {#if $config?.features.enable_login_form} + {#if $config?.features.enable_login_form || $config?.features.enable_ldap} {#if mode === 'ldap'}