From c1ba289ab5570b8840b5b6a3ee61f9b601b4a4e7 Mon Sep 17 00:00:00 2001 From: Andrew Baek Date: Sat, 2 Aug 2025 19:04:52 +0400 Subject: [PATCH] fix: add conditional password confirmation on signup Password confirmation during signup is now only enforced if the 'enable_signup_password_confirmation' feature flag is enabled in the config. This allows for more flexible signup flows based on configuration. --- src/routes/auth/+page.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 66e027ba34..85a37ff3be 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -64,9 +64,11 @@ }; const signUpHandler = async () => { - if (password !== confirmPassword) { - toast.error($i18n.t('Passwords do not match.')); - return; + if ($config?.features?.enable_signup_password_confirmation) { + if (password !== confirmPassword) { + toast.error($i18n.t('Passwords do not match.')); + return; + } } const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch(