stages/identification: add field for passwordless flow

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-12-23 18:27:00 +01:00
parent b6b0edb7ad
commit 5c5634830f
13 changed files with 394 additions and 43 deletions

View File

@ -244,7 +244,17 @@ export class IdentificationStage extends BaseStage<
<button type="submit" class="pf-c-button pf-m-primary pf-m-block">
${this.challenge.primaryAction}
</button>
</div>`;
</div>
${this.challenge.passwordlessUrl
? html`<div class="pf-c-form__group pf-m-action">
<a
href=${this.challenge.passwordlessUrl}
class="pf-c-button pf-m-secondary pf-m-block"
>
${t`Use a security key`}
</a>
</div>`
: html``}`;
}
render(): TemplateResult {