2016-09-13 06:10:24 +08:00
|
|
|
<div class="row">
|
2016-09-13 22:31:07 +08:00
|
|
|
<div class="col-xs-12 col-md-5 col-lg-5">
|
2016-09-13 06:10:24 +08:00
|
|
|
|
|
|
|
<label>Password</label>
|
|
|
|
<div>
|
|
|
|
<password-gen ng-model="storedCredential.password"
|
|
|
|
settings="pwSettings" callback="pwGenerated"></password-gen>
|
|
|
|
<ng-password-meter
|
|
|
|
password="storedCredential.password"></ng-password-meter>
|
|
|
|
</div>
|
|
|
|
<label>Repeat password</label>
|
|
|
|
<div>
|
2016-09-13 22:31:07 +08:00
|
|
|
<input type="password" ng-model="storedCredential.password_repeat">
|
2016-09-14 21:09:55 +08:00
|
|
|
</div>
|
|
|
|
<label>Expire date</label>
|
|
|
|
<div>
|
2016-09-23 21:05:27 +08:00
|
|
|
<span datetime-picker ng-model="storedCredential.expire_time" class="link"
|
|
|
|
future-only ng-show="storedCredential.expire_time == 0"
|
|
|
|
|
|
|
|
close-on-select="false"
|
|
|
|
> No expire date set</span>
|
|
|
|
<span datetime-picker ng-model="storedCredential.expire_time" class="link"
|
|
|
|
future-only ng-show="storedCredential.expire_time != 0"
|
|
|
|
|
|
|
|
close-on-select="false"> {{ storedCredential.expire_time | date:'dd-MM-yyyy @ HH:mm:ss'}}</span>
|
2016-09-14 21:09:55 +08:00
|
|
|
|
2016-09-13 06:10:24 +08:00
|
|
|
</div>
|
|
|
|
<label>Renew interval</label>
|
|
|
|
<div>
|
2016-09-23 21:05:27 +08:00
|
|
|
<input type="number" ng-model="renewIntervalValue" min="0" ng-change="updateInterval(renewIntervalValue, renewIntervalModifier)">
|
|
|
|
<select ng-model="renewIntervalModifier" ng-change="updateInterval(renewIntervalValue, renewIntervalModifier)">
|
|
|
|
<option value="0">Disabled</option>
|
|
|
|
<option value="86400">Day(s)</option>
|
|
|
|
<option value="604800">Week(s)</option>
|
|
|
|
<option value="2592000">Month(s)</option>
|
|
|
|
<option value="31622400">Year(s)</option>
|
|
|
|
</select>
|
2016-09-13 06:10:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-13 22:31:07 +08:00
|
|
|
<div class="col-xs-12 col-md-7 col-lg-7">
|
2016-09-13 06:10:24 +08:00
|
|
|
Password generation settings
|
|
|
|
|
2016-09-13 22:31:07 +08:00
|
|
|
<div class="row">
|
2016-09-13 06:10:24 +08:00
|
|
|
<div class="password_settings">
|
2016-09-13 22:31:07 +08:00
|
|
|
<div class="col-xs-12 col-sm-5 col-lg-4">
|
2016-09-13 06:10:24 +08:00
|
|
|
<label>
|
|
|
|
<span class="label">Password length</span><br />
|
|
|
|
<input type="number" ng-model="pwSettings.length" min="1">
|
|
|
|
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<span class="label">Minimum amount of digits</span><br />
|
|
|
|
<input type="number" ng-model="pwSettings.minimumDigitCount" min="0">
|
|
|
|
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-09-13 22:31:07 +08:00
|
|
|
<div class="col-xs-12 col-sm-6 col-lg-6">
|
2016-09-13 06:10:24 +08:00
|
|
|
<label>
|
|
|
|
<input type="checkbox"
|
|
|
|
ng-model="pwSettings.useUppercase">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Use uppercase letters</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input
|
|
|
|
ng-model="pwSettings.useLowercase" type="checkbox"
|
|
|
|
id="lower">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Use lowercase letters</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input ng-model="pwSettings.useDigits" type="checkbox"
|
|
|
|
id="digits">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Use numbers</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" id="special"
|
|
|
|
ng-model="pwSettings.useSpecialChars">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Use special characters</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" id="ambig"
|
|
|
|
ng-model="pwSettings.avoidAmbiguousCharacters">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Avoid ambiguous characters</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" ng-model="pwSettings.requireEveryCharType"
|
|
|
|
id="reqevery">
|
2016-09-13 22:31:07 +08:00
|
|
|
<span class="label sm">Require every character type</span>
|
2016-09-13 06:10:24 +08:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-13 22:31:07 +08:00
|
|
|
</div>
|
2016-09-13 06:10:24 +08:00
|
|
|
</div>
|