diff --git a/web/src/flow/stages/identification/IdentificationStage.ts b/web/src/flow/stages/identification/IdentificationStage.ts index 0928f1d4e7..c081cb3166 100644 --- a/web/src/flow/stages/identification/IdentificationStage.ts +++ b/web/src/flow/stages/identification/IdentificationStage.ts @@ -194,14 +194,14 @@ export class IdentificationStage extends BaseStage< ${msg("Need an account?")} ${msg("Sign up.")}

` - : html``} + : nothing} ${this.challenge.recoveryUrl ? html`` - : html``} + : nothing} `; } @@ -265,26 +265,18 @@ export class IdentificationStage extends BaseStage< /> ` - : html``} + : nothing} ${"non_field_errors" in (this.challenge?.responseErrors || {}) ? this.renderNonFieldErrors(this.challenge?.responseErrors?.non_field_errors || []) - : html``} + : nothing}
${this.challenge.passwordlessUrl - ? html`${msg("Or")} -
- - ${msg("Use a security key")} - -
` - : html``}`; + ? html`${msg("Or")}` + : nothing}`; } render(): TemplateResult { @@ -306,8 +298,20 @@ export class IdentificationStage extends BaseStage< ? html`

${msg(str`Login to continue to ${this.challenge.applicationPre}.`)}

` - : html``} + : nothing} ${this.renderInput()} + ${this.challenge.passwordlessUrl + ? html` +
+ + ${msg("Use a security key")} + +
+ ` + : nothing}