bitwarden-estensione-browser/apps/web/src/app/settings/two-factor-duo.component.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

106 lines
3.6 KiB
HTML
Raw Normal View History

<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="2faDuoTitle">
2019-10-11 17:47:41 +02:00
<div class="modal-dialog" role="document">
2018-06-27 21:27:59 +02:00
<div class="modal-content">
<div class="modal-header">
2019-10-11 17:47:41 +02:00
<h2 class="modal-title" title="2faDuoTitle">
2018-06-27 21:27:59 +02:00
{{ "twoStepLogin" | i18n }}
<small>Duo</small>
</h2>
2019-10-11 17:22:21 +02:00
<button
type="button"
class="close"
data-dismiss="modal"
appA11yTitle="{{ 'close' | i18n }}"
>
2018-06-27 21:27:59 +02:00
<span aria-hidden="true">&times;</span>
</button>
2021-12-17 15:57:11 +01:00
</div>
2019-02-21 22:50:37 +01:00
<app-two-factor-verify
[organizationId]="organizationId"
[type]="type"
(onAuthed)="auth($event)"
*ngIf="!authed"
2021-12-17 15:57:11 +01:00
>
</app-two-factor-verify>
2021-12-17 15:57:11 +01:00
<form
#form
2019-02-21 22:50:37 +01:00
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
*ngIf="authed"
autocomplete="off"
2021-12-17 15:57:11 +01:00
>
2018-06-27 21:27:59 +02:00
<div class="modal-body">
<ng-container *ngIf="enabled">
<app-callout type="success" title="{{ 'enabled' | i18n }}" icon="bwi bwi-check-circle">
2018-06-27 21:27:59 +02:00
{{ "twoStepLoginProviderEnabled" | i18n }}
</app-callout>
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
2018-06-27 21:27:59 +02:00
<strong>{{ "twoFactorDuoIntegrationKey" | i18n }}:</strong> {{ ikey }}
2021-12-17 15:57:11 +01:00
<br />
2018-06-27 21:27:59 +02:00
<strong>{{ "twoFactorDuoSecretKey" | i18n }}:</strong> {{ skey }}
2021-12-17 15:57:11 +01:00
<br />
2018-06-27 21:27:59 +02:00
<strong>{{ "twoFactorDuoApiHostname" | i18n }}:</strong> {{ host }}
</ng-container>
<ng-container *ngIf="!enabled">
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
2018-06-27 21:27:59 +02:00
<p>{{ "twoFactorDuoDesc" | i18n }}</p>
<div class="form-group">
<label for="ikey">{{ "twoFactorDuoIntegrationKey" | i18n }}</label>
2021-12-17 15:57:11 +01:00
<input
2019-02-21 22:50:37 +01:00
id="ikey"
type="text"
name="IntegrationKey"
class="form-control"
[(ngModel)]="ikey"
2021-12-17 15:57:11 +01:00
required
2019-02-21 22:50:37 +01:00
appInputVerbatim
2021-12-17 15:57:11 +01:00
/>
2018-06-27 21:27:59 +02:00
</div>
<div class="form-group">
<label for="skey">{{ "twoFactorDuoSecretKey" | i18n }}</label>
<input
id="skey"
type="password"
name="SecretKey"
class="form-control"
[(ngModel)]="skey"
2021-12-17 15:57:11 +01:00
required
appInputVerbatim
2018-06-27 21:27:59 +02:00
autocomplete="new-password"
2021-12-17 15:57:11 +01:00
/>
2018-06-27 21:27:59 +02:00
</div>
<div class="form-group">
<label for="host">{{ "twoFactorDuoApiHostname" | i18n }}</label>
2019-02-21 22:50:37 +01:00
<input
id="host"
type="text"
name="Host"
class="form-control"
[(ngModel)]="host"
placeholder="{{ 'ex' | i18n }} api-xxxxxxxx.duosecurity.com"
required
appInputVerbatim
/>
2018-06-27 21:27:59 +02:00
</div>
</ng-container>
</div>
<div class="modal-footer">
2018-07-18 05:15:15 +02:00
<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>
2018-06-27 23:50:31 +02:00
<span *ngIf="!enabled">{{ "enable" | i18n }}</span>
2018-06-27 21:27:59 +02:00
<span *ngIf="enabled">{{ "disable" | i18n }}</span>
</button>
2019-02-21 22:50:37 +01:00
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">
{{ "close" | i18n }}
</button>
2018-06-27 21:27:59 +02:00
</div>
2021-12-17 15:57:11 +01:00
</form>
2018-06-27 21:27:59 +02:00
</div>
2021-12-17 15:57:11 +01:00
</div>
2018-06-27 21:27:59 +02:00
</div>