mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 02:23:44 +00:00
* [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>
98 lines
3.7 KiB
HTML
98 lines
3.7 KiB
HTML
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="resetPasswordTitle">
|
|
<div class="modal-dialog" role="document">
|
|
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
<div class="modal-header">
|
|
<h2 class="modal-title" id="resetPasswordTitle">
|
|
{{ "resetPassword" | i18n }}
|
|
<small class="text-muted" *ngIf="name">{{ name }}</small>
|
|
</h2>
|
|
<button
|
|
type="button"
|
|
class="close"
|
|
data-dismiss="modal"
|
|
appA11yTitle="{{ 'close' | i18n }}"
|
|
>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<app-callout type="warning"
|
|
>{{ "resetPasswordLoggedOutWarning" | i18n: loggedOutWarningName }}
|
|
</app-callout>
|
|
<app-callout
|
|
type="info"
|
|
[enforcedPolicyOptions]="enforcedPolicyOptions"
|
|
enforcedPolicyMessage="{{ 'resetPasswordMasterPasswordPolicyInEffect' | i18n }}"
|
|
*ngIf="enforcedPolicyOptions"
|
|
>
|
|
</app-callout>
|
|
<div class="row">
|
|
<div class="col form-group">
|
|
<div class="d-flex">
|
|
<label for="newPassword">{{ "newPassword" | i18n }}</label>
|
|
<div class="ml-auto d-flex">
|
|
<a
|
|
href="#"
|
|
class="d-block mr-2 bwi-icon-above-input"
|
|
appStopClick
|
|
appA11yTitle="{{ 'generatePassword' | i18n }}"
|
|
(click)="generatePassword()"
|
|
>
|
|
<i class="bwi bwi-lg bwi-fw bwi-refresh" aria-hidden="true"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="input-group mb-1">
|
|
<input
|
|
id="newPassword"
|
|
class="form-control text-monospace"
|
|
appAutofocus
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
name="NewPassword"
|
|
[(ngModel)]="newPassword"
|
|
required
|
|
appInputVerbatim
|
|
autocomplete="new-password"
|
|
(input)="updatePasswordStrength()"
|
|
/>
|
|
<div class="input-group-append">
|
|
<button
|
|
type="button"
|
|
class="btn btn-outline-secondary"
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
(click)="togglePassword()"
|
|
>
|
|
<i
|
|
class="bwi bwi-lg"
|
|
aria-hidden="true"
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
|
></i>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
class="btn btn-outline-secondary"
|
|
appA11yTitle="{{ 'copyPassword' | i18n }}"
|
|
(click)="copy(newPassword)"
|
|
>
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true">
|
|
</app-password-strength>
|
|
</div>
|
|
</div>
|
|
</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 type="button" class="btn btn-outline-secondary" data-dismiss="modal">
|
|
{{ "cancel" | i18n }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|