mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-10 06:08:34 +02:00
2ae98887b7
* [Icons] Update to new font sheet * Rebased - updated all icon remaining icon references * Temporarily Updating gitmodules branch * Fixed class reference * Revert temporary gitmodule branch * Icon updates/changes * Pull jslib m-icon-updates latest * Prettier * Update jslib to master * Reset jslib to master * Removed obsolete variable reference, replaced bolt references * Removed all instances of base class - maps create automatically * Updated toast icon references * Imported styles to reference variable/map * Reverted to using base class * Update jslib * Rename eye-2 to eye and eye-slash-2 to eye-slash * Bump jslib * Remove duplicate scss * Remove old fa * Update fallback image * Bump jslib * Rename eye-2 to eye, and eye-slash-2 to eye-slash * Fix 404 * Fix integrity of bootstrap.min.css * Fix callout missing bwi * Add bwi to change-kdf * Remove bwi from callout again * Bump jslib Co-authored-by: Hinton <oscar@oscarhinton.com>
126 lines
4.4 KiB
HTML
126 lines
4.4 KiB
HTML
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="2faYubiKeyTitle">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2 class="modal-title" id="2faYubiKeyTitle">
|
|
{{ "twoStepLogin" | i18n }}
|
|
<small>YubiKey</small>
|
|
</h2>
|
|
<button
|
|
type="button"
|
|
class="close"
|
|
data-dismiss="modal"
|
|
appA11yTitle="{{ 'close' | i18n }}"
|
|
>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<app-two-factor-verify
|
|
[organizationId]="organizationId"
|
|
[type]="type"
|
|
(onAuthed)="auth($event)"
|
|
*ngIf="!authed"
|
|
>
|
|
</app-two-factor-verify>
|
|
<form
|
|
#form
|
|
(ngSubmit)="submit()"
|
|
[appApiAction]="formPromise"
|
|
ngNativeValidate
|
|
*ngIf="authed"
|
|
autocomplete="off"
|
|
>
|
|
<div class="modal-body">
|
|
<app-callout
|
|
type="success"
|
|
title="{{ 'enabled' | i18n }}"
|
|
icon="bwi bwi-check-circle"
|
|
*ngIf="enabled"
|
|
>
|
|
{{ "twoStepLoginProviderEnabled" | i18n }}
|
|
</app-callout>
|
|
<app-callout type="warning">
|
|
<p>{{ "twoFactorYubikeyWarning" | i18n }}</p>
|
|
<ul class="mb-0">
|
|
<li>{{ "twoFactorYubikeySupportUsb" | i18n }}</li>
|
|
<li>{{ "twoFactorYubikeySupportMobile" | i18n }}</li>
|
|
</ul>
|
|
</app-callout>
|
|
<img class="float-right mfaType3" alt="YubiKey OTP security key logo" />
|
|
<p>{{ "twoFactorYubikeyAdd" | i18n }}:</p>
|
|
<ol>
|
|
<li>{{ "twoFactorYubikeyPlugIn" | i18n }}</li>
|
|
<li>{{ "twoFactorYubikeySelectKey" | i18n }}</li>
|
|
<li>{{ "twoFactorYubikeyTouchButton" | i18n }}</li>
|
|
<li>{{ "twoFactorYubikeySaveForm" | i18n }}</li>
|
|
</ol>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="form-group col-6" *ngFor="let k of keys; let i = index">
|
|
<label for="key{{ i + 1 }}">{{ "yubikeyX" | i18n: i + 1 }}</label>
|
|
<input
|
|
id="key{{ i + 1 }}"
|
|
type="password"
|
|
name="Key{{ i + 1 }}"
|
|
class="form-control"
|
|
[(ngModel)]="k.key"
|
|
*ngIf="!k.existingKey"
|
|
appInputVerbatim
|
|
autocomplete="new-password"
|
|
/>
|
|
<div class="d-flex" *ngIf="k.existingKey">
|
|
<span class="mr-2">{{ k.existingKey }}</span>
|
|
<button
|
|
type="button"
|
|
class="btn btn-link text-danger ml-auto"
|
|
(click)="remove(k)"
|
|
appA11yTitle="{{ 'remove' | i18n }}"
|
|
>
|
|
<i class="bwi bwi-minus-circle bwi-lg" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<strong class="d-block mb-2">{{ "nfcSupport" | i18n }}</strong>
|
|
<div class="form-check">
|
|
<input type="checkbox" class="form-check-input" id="nfc" name="Nfc" [(ngModel)]="nfc" />
|
|
<label class="form-check-label" for="nfc">{{
|
|
"twoFactorYubikeySupportsNfc" | i18n
|
|
}}</label>
|
|
</div>
|
|
<small class="form-text text-muted">{{ "twoFactorYubikeySupportsNfcDesc" | i18n }}</small>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
|
<i
|
|
class="bwi bwi-spinner bwi-spin"
|
|
title="{{ 'loading' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span>{{ "save" | i18n }}</span>
|
|
</button>
|
|
<button
|
|
#disableBtn
|
|
type="button"
|
|
class="btn btn-outline-secondary btn-submit"
|
|
[appApiAction]="disablePromise"
|
|
[disabled]="disableBtn.loading"
|
|
(click)="disable()"
|
|
*ngIf="enabled"
|
|
>
|
|
<i
|
|
class="bwi bwi-spinner bwi-spin"
|
|
title="{{ 'loading' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span>{{ "disableAllKeys" | i18n }}</span>
|
|
</button>
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">
|
|
{{ "close" | i18n }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|