From d1b4b828953c8a700473f3f74921e842c4dae8c4 Mon Sep 17 00:00:00 2001 From: Hampus Date: Mon, 12 Oct 2026 20:10:05 +0200 Subject: [PATCH] fix(app): require a username on username-only instances (#3430) --- .../account_switcher_modal/AccountSwitcherRegisterStep.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherRegisterStep.tsx b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherRegisterStep.tsx index adc0980ff..5e5217452 100644 --- a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherRegisterStep.tsx +++ b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherRegisterStep.tsx @@ -1,6 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-or-later import type {RuntimeConfigSnapshot} from '@app/features/app/state/InstanceSnapshotStore'; +import {usesUsernameSignIn} from '@app/features/app/utils/AccountIdentityFeatures'; import type * as AuthenticationCommands from '@app/features/auth/commands/AuthenticationCommands'; import authStyles from '@app/features/auth/components/accounts/account_switcher_modal/AccountSwitcherAuthFlow.module.css'; import pageStyles from '@app/features/auth/flow/AuthPageStyles.module.css'; @@ -35,6 +36,7 @@ export const AccountSwitcherRegisterStep = observer(function AccountSwitcherRegi /> ); } + const usernameSignIn = usesUsernameSignIn(runtimeSnapshot.features); return ( <>

Create account} redirectPath=""