From 01ffece9ffbde79245009feb785c8a80dfed8bcc Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 15 Nov 2023 14:52:48 +0100 Subject: [PATCH] web/flows: don't auto-redirect to first source when passwordless is configured (#7579) Signed-off-by: Jens Langhammer --- web/src/flow/stages/identification/IdentificationStage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/flow/stages/identification/IdentificationStage.ts b/web/src/flow/stages/identification/IdentificationStage.ts index e0399d10d..65b30a73c 100644 --- a/web/src/flow/stages/identification/IdentificationStage.ts +++ b/web/src/flow/stages/identification/IdentificationStage.ts @@ -75,6 +75,8 @@ export class IdentificationStage extends BaseStage< // meaning that without the auto-redirect the user would only have the option // to manually click on the source button if ((this.challenge.userFields || []).length !== 0) return; + // we also don't want to auto-redirect if there's a passwordless URL configured + if (this.challenge.passwordlessUrl) return; const source = this.challenge.sources[0]; this.host.challenge = source.challenge; }