bitwarden-estensione-browser/src/app/settings/two-factor-recovery.compone...

33 lines
1.5 KiB
HTML
Raw Normal View History

2018-06-28 15:40:11 +02:00
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title">
{{'twoStepLogin' | i18n}}
<small>{{'recoveryCodeTitle' | i18n}}</small>
</h2>
<button type="button" class="close" data-dismiss="modal" attr.aria-label="{{'close' | i18n}}">
<span aria-hidden="true">&times;</span>
</button>
</div>
<app-two-factor-verify [type]="-1" (onAuthed)="auth($event)" *ngIf="!authed">
</app-two-factor-verify>
<ng-container *ngIf="authed">
<div class="modal-body text-center">
2018-06-29 04:27:32 +02:00
<ng-container *ngIf="code">
<p>{{'twoFactorRecoveryYourCode' | i18n}}:</p>
<code class="text-lg">{{code}}</code>
</ng-container>
<ng-container *ngIf="!code">
{{'twoFactorRecoveryNoCode' | i18n}}
</ng-container>
2018-06-28 15:40:11 +02:00
</div>
<div class="modal-footer">
2018-06-29 04:27:32 +02:00
<button appBlurClick type="button" class="btn btn-primary" (click)="print()" *ngIf="code">{{'printCode' | i18n}}</button>
2018-06-28 15:40:11 +02:00
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{'close' | i18n}}</button>
</div>
</ng-container>
</div>
</div>
</div>