From 3d960dccf397056043a3fe237c5b4f57f924867f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 7 Mar 2022 17:37:27 +0100 Subject: [PATCH] fix(front/auth/register form): don't show password register method if there is no UserNameComponent fixes #44 --- src/assets/views/auth/auth.svelte | 14 ++++++++------ src/auth/AuthController.ts | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/assets/views/auth/auth.svelte b/src/assets/views/auth/auth.svelte index 74f9b9d..9fd47ce 100644 --- a/src/assets/views/auth/auth.svelte +++ b/src/assets/views/auth/auth.svelte @@ -62,20 +62,22 @@
- {#if $locals.has_username} + {#if $locals.hasUsername} {/if} - {#if registerUsingMagicLink} + {#if registerUsingMagicLink || !$locals.canRegisterWithPassword} - + {#if $locals.canRegisterWithPassword} + + {/if} {:else}