Commit 4ecf9dd6 authored by Dillon's avatar Dillon
Browse files

Created if blocks to show or hide username, password, signin and or sections...

Created if blocks to show or hide username, password, signin and or sections depending on new enable_username_password_login variable
parent b56dcf15
......@@ -173,6 +173,7 @@
{/if}
</div>
{#if $config?.features.enable_username_password_login}
<div class="flex flex-col mt-4">
{#if mode === 'signup'}
<div>
......@@ -215,7 +216,9 @@
/>
</div>
</div>
{/if}
{#if $config?.features.enable_username_password_login}
<div class="mt-5">
<button
class=" bg-gray-900 hover:bg-gray-800 w-full rounded-2xl text-white font-medium text-sm py-3 transition"
......@@ -246,15 +249,18 @@
</div>
{/if}
</div>
{/if}
</form>
{#if Object.keys($config?.oauth?.providers ?? {}).length > 0}
<div class="inline-flex items-center justify-center w-full">
<hr class="w-64 h-px my-8 bg-gray-200 border-0 dark:bg-gray-700" />
{#if $config?.features.enable_username_password_login}
<span
class="absolute px-3 font-medium text-gray-900 -translate-x-1/2 bg-white left-1/2 dark:text-white dark:bg-gray-950"
>{$i18n.t('or')}</span
>
{/if}
</div>
<div class="flex flex-col space-y-2">
{#if $config?.oauth?.providers?.google}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment