1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Add shared webauthn component (#9771)

This commit is contained in:
Bernd Schoolmann
2024-07-16 16:46:37 +02:00
committed by GitHub
parent 96538a68fd
commit 69a37a884f
10 changed files with 164 additions and 1 deletions

View File

@@ -12,6 +12,10 @@
(token)="token = $event"
*ngIf="selectedProviderType === providerType.Yubikey"
/>
<app-two-factor-auth-webauthn
(token)="token = $event; submitForm()"
*ngIf="selectedProviderType === providerType.WebAuthn"
/>
<bit-form-control *ngIf="selectedProviderType != null">
<bit-label>{{ "rememberMe" | i18n }}</bit-label>
<input type="checkbox" bitCheckbox formControlName="remember" />
@@ -31,7 +35,7 @@
buttonType="primary"
bitButton
bitFormButton
*ngIf="selectedProviderType != null"
*ngIf="selectedProviderType != null && selectedProviderType !== providerType.WebAuthn"
>
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ actionButtonText }} </span>
</button>