passphrase cleanup
This commit is contained in:
parent
675739d24f
commit
05c9957fd2
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 7b3fce17796bc7b415b65b7e869e8aa081eae022
|
||||
Subproject commit d5f86747bf5533308b271b5fade75a6761f5d4e5
|
|
@ -8,35 +8,40 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input id="generate-password" name="generator-type" value="generate-password" class="form-check-input" type="radio" (change)="saveOptions()" [(ngModel)]="options.generateTypePassword">
|
||||
<input id="generate-password" name="generator-type" value="0" class="form-check-input" type="radio" (change)="saveOptions()"
|
||||
[(ngModel)]="type">
|
||||
<label for="generate-password">{{'generatePassword' | i18n}}</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input id="generate-passphrase" name="generator-type" value="generate-passphrase" class="form-check-input" type="radio" (change)="saveOptions()" [(ngModel)]="options.generateTypePassword">
|
||||
<input id="generate-passphrase" name="generator-type" value="1" class="form-check-input" type="radio" (change)="saveOptions()"
|
||||
[(ngModel)]="type">
|
||||
<label for="generate-passphrase">{{'generatePassphrase' | i18n}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row typePassword" *ngIf="options.generateTypePassword != 'generate-passphrase'">
|
||||
<div class="row" *ngIf="type === '1'">
|
||||
<div class="form-group col-4">
|
||||
<label for="num-words">{{'numWords' | i18n}}</label>
|
||||
<input id="num-words" class="form-control" type="number" min="3" max="20" [(ngModel)]="options.numWords" (blur)="saveOptions()">
|
||||
</div>
|
||||
</div>
|
||||
<ng-container *ngIf="type === '0'">
|
||||
<div class="row">
|
||||
<div class="form-group col-4">
|
||||
<label for="length">{{'length' | i18n}}</label>
|
||||
<input id="length" class="form-control" type="number" min="5" max="128" [(ngModel)]="options.length" (blur)="saveOptions()">
|
||||
</div>
|
||||
<div class="form-group col-4">
|
||||
<label for="min-number">{{'minNumbers' | i18n}}</label>
|
||||
<input id="min-number" class="form-control" type="number" min="0" max="9" (input)="saveOptions()" [(ngModel)]="options.minNumber">
|
||||
<input id="min-number" class="form-control" type="number" min="0" max="9" (input)="saveOptions()"
|
||||
[(ngModel)]="options.minNumber">
|
||||
</div>
|
||||
<div class="form-group col-4">
|
||||
<label for="min-special">{{'minSpecial' | i18n}}</label>
|
||||
<input id="min-special" class="form-control" type="number" min="0" max="9" (input)="saveOptions()" [(ngModel)]="options.minSpecial">
|
||||
<input id="min-special" class="form-control" type="number" min="0" max="9" (input)="saveOptions()"
|
||||
[(ngModel)]="options.minSpecial">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row typePassphrase" *ngIf="options.generateTypePassword == 'generate-passphrase'">
|
||||
<div class="form-group col-4">
|
||||
<label for="num-words">{{'numWords' | i18n}}</label>
|
||||
<input id="num-words" class="form-control" type="number" min="3" max="128" [(ngModel)]="options.numWords" (blur)="saveOptions()">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group typePassword" *ngIf="options.generateTypePassword != 'generate-passphrase'">
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input id="uppercase" class="form-check-input" type="checkbox" (change)="saveOptions()" [(ngModel)]="options.uppercase">
|
||||
<label for="uppercase" class="form-check-label">A-Z</label>
|
||||
|
@ -57,7 +62,8 @@
|
|||
<input id="ambiguous" class="form-check-input" type="checkbox" (change)="saveOptions()" [(ngModel)]="avoidAmbiguous">
|
||||
<label for="ambiguous" class="form-check-label">{{'ambiguous' | i18n}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
<div class="d-flex">
|
||||
<div>
|
||||
<button type="button" class="btn btn-primary" (click)="regenerate()">
|
||||
|
|
Loading…
Reference in New Issue