2020-08-13 20:32:07 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
2020-08-17 21:04:59 +02:00
|
|
|
<div class="row justify-content-md-center mt-5">
|
|
|
|
<div class="col-5">
|
|
|
|
<p class="lead text-center mb-4">{{ "setMasterPassword" | i18n }}</p>
|
|
|
|
<div class="card d-block">
|
2020-08-28 15:56:51 +02:00
|
|
|
<div class="card-body text-center" *ngIf="syncLoading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
2020-08-28 15:56:51 +02:00
|
|
|
{{ "loading" | i18n }}
|
|
|
|
</div>
|
|
|
|
<div class="card-body" *ngIf="!syncLoading">
|
2020-08-17 21:04:59 +02:00
|
|
|
<app-callout type="info">{{ "ssoCompleteRegistration" | i18n }}</app-callout>
|
2021-09-03 23:26:38 +02:00
|
|
|
<app-callout
|
|
|
|
type="warning"
|
|
|
|
title="{{ 'resetPasswordPolicyAutoEnroll' | i18n }}"
|
2021-09-17 06:00:57 +02:00
|
|
|
*ngIf="resetPasswordAutoEnroll"
|
|
|
|
>
|
2021-09-03 23:26:38 +02:00
|
|
|
{{ "resetPasswordAutoEnrollInviteWarning" | i18n }}
|
|
|
|
</app-callout>
|
2020-08-17 21:04:59 +02:00
|
|
|
<div class="form-group">
|
2021-08-30 23:19:31 +02:00
|
|
|
<app-callout
|
|
|
|
type="info"
|
|
|
|
[enforcedPolicyOptions]="enforcedPolicyOptions"
|
|
|
|
*ngIf="enforcedPolicyOptions"
|
|
|
|
>
|
2020-08-17 21:04:59 +02:00
|
|
|
</app-callout>
|
|
|
|
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<div class="w-100">
|
|
|
|
<input
|
|
|
|
id="masterPassword"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
name="MasterPasswordHash"
|
|
|
|
class="text-monospace form-control mb-1"
|
|
|
|
[(ngModel)]="masterPassword"
|
|
|
|
(input)="updatePasswordStrength()"
|
|
|
|
required
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true">
|
|
|
|
</app-password-strength>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="ml-1 btn btn-link"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
(click)="togglePassword(false)"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-lg"
|
2020-08-17 21:04:59 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:25:58 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2020-08-17 21:04:59 +02:00
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
<div class="progress-bar invisible"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<small class="form-text text-muted">{{ "masterPassDesc" | i18n }}</small>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="masterPasswordRetype">{{ "reTypeMasterPass" | i18n }}</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<input
|
|
|
|
id="masterPasswordRetype"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
name="MasterPasswordRetype"
|
|
|
|
class="text-monospace form-control"
|
|
|
|
[(ngModel)]="masterPasswordRetype"
|
2021-12-17 15:57:11 +01:00
|
|
|
required
|
2020-08-17 21:04:59 +02:00
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="ml-1 btn btn-link"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
(click)="togglePassword(true)"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-lg"
|
2020-08-17 21:04:59 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:25:58 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2020-08-17 21:04:59 +02:00
|
|
|
></i>
|
|
|
|
</button>
|
2020-08-13 20:32:07 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2020-08-17 21:04:59 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="hint">{{ "masterPassHint" | i18n }}</label>
|
|
|
|
<input id="hint" class="form-control" type="text" name="Hint" [(ngModel)]="hint" />
|
|
|
|
<small class="form-text text-muted">{{ "masterPassHintDesc" | i18n }}</small>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
|
|
|
<hr />
|
2020-08-17 21:04:59 +02:00
|
|
|
<div class="d-flex">
|
2021-12-17 15:57:11 +01:00
|
|
|
<button
|
|
|
|
type="submit"
|
2020-08-17 21:04:59 +02:00
|
|
|
class="btn btn-primary btn-block btn-submit"
|
|
|
|
[disabled]="form.loading"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-spinner bwi-spin"
|
2020-08-17 21:04:59 +02:00
|
|
|
title="{{ 'loading' | i18n }}"
|
|
|
|
aria-hidden="true"
|
2021-12-17 15:57:11 +01:00
|
|
|
></i>
|
2020-08-17 21:04:59 +02:00
|
|
|
<span>{{ "submit" | i18n }}</span>
|
|
|
|
</button>
|
2021-12-17 15:57:11 +01:00
|
|
|
<button
|
2020-08-17 21:04:59 +02:00
|
|
|
type="button"
|
|
|
|
class="btn btn-outline-secondary btn-block ml-2 mt-0"
|
|
|
|
(click)="logOut()"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2020-08-17 21:04:59 +02:00
|
|
|
{{ "logOut" | i18n }}
|
|
|
|
</button>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2020-08-13 20:32:07 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2020-08-13 20:32:07 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2020-08-13 20:32:07 +02:00
|
|
|
</form>
|