mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* Update feature/sso jslib261a200-> 2e823ea (#589) * [SSO] Reset master password (#580) * Initial commit reset master password (sso) * Reverted order of two factor/reset password conditional * Added necessary resetMasterPassword flag for potential entry into RMP flow * Complete Revamp: Reverted Register // Deleted reset-master-password // updated sso/(settings)change password to use use super class // Adjust routing/messages // Created (accounts) change-password * Updated button -> Set Master Password * Refactored change password sub classes to use new submit pattern * Cleaned import statements * Update jslib (7fa5178->fe167be) * Update jslibfe167be- >34632e5 * Fixed sso base class import * merge master * Fixed missing semicolon // updated jslib to whats in feature/sso * Fixed two factor formatting * Added new change password component to app module * Updated component selector * updating jslib 34632e5 -> 2e823ea * Fixed lint warning in two-factor component Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> * Update jslib to101c568(#594) * Support for dynamic clientid (#595) * support third party sso clients * jslib update * update jslib * Update change-password.component.ts * Update sso.component.ts * Update app.module.ts Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
46 lines
2.4 KiB
HTML
46 lines
2.4 KiB
HTML
<div class="secondary-header">
|
|
<h1>{{'setMasterPassword' | i18n}}</h1>
|
|
</div>
|
|
<app-callout type="tip">{{'ssoCompleteRegistration' | i18n}}</app-callout>
|
|
<app-callout type="info" *ngIf="enforcedPolicyOptions">
|
|
{{'masterPasswordPolicyInEffect' | i18n}}
|
|
<ul class="mb-0">
|
|
<li *ngIf="enforcedPolicyOptions?.minComplexity > 0">
|
|
{{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}}
|
|
</li>
|
|
<li *ngIf="enforcedPolicyOptions?.minLength > 0">
|
|
{{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}}
|
|
</li>
|
|
<li *ngIf="enforcedPolicyOptions?.requireUpper">{{'policyInEffectUppercase' | i18n}}</li>
|
|
<li *ngIf="enforcedPolicyOptions?.requireLower">{{'policyInEffectLowercase' | i18n}}</li>
|
|
<li *ngIf="enforcedPolicyOptions?.requireNumbers">{{'policyInEffectNumbers' | i18n}}</li>
|
|
<li *ngIf="enforcedPolicyOptions?.requireSpecial">{{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}</li>
|
|
</ul>
|
|
</app-callout>
|
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<div class="form-group">
|
|
<label for="newMasterPassword">{{'newMasterPass' | i18n}}</label>
|
|
<input id="newMasterPassword" type="password" name="NewMasterPasswordHash" class="form-control mb-1"
|
|
[(ngModel)]="newMasterPassword" (input)="updatePasswordStrength()" required appInputVerbatim
|
|
autocomplete="new-password">
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true"></app-password-strength>
|
|
</div>
|
|
</div>
|
|
<div class="col-6">
|
|
<div class="form-group">
|
|
<label for="confirmNewMasterPassword">{{'confirmNewMasterPass' | i18n}}</label>
|
|
<input id="confirmNewMasterPassword" type="password" name="ConfirmNewMasterPasswordHash"
|
|
class="form-control" [(ngModel)]="confirmNewMasterPassword" required appInputVerbatim
|
|
autocomplete="new-password">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
<span>{{'setMasterPassword' | i18n}}</span>
|
|
</button>
|
|
</form>
|