Add passphrase keypasses
This commit is contained in:
@@ -302,7 +302,23 @@
|
||||
<label for="kp-code">Code <span style="color:var(--text-muted);font-weight:400">(leave empty to auto-generate)</span></label>
|
||||
<input id="kp-code" type="text" autocomplete="off" autocorrect="off" autocapitalize="characters"
|
||||
spellcheck="false" placeholder="Auto-generated"
|
||||
style="font-family:monospace;letter-spacing:.1em;text-transform:uppercase" maxlength="32" />
|
||||
style="font-family:monospace;letter-spacing:.1em;text-transform:uppercase" maxlength="40" />
|
||||
</div>
|
||||
<!-- Auto-generation options — hidden when a manual code is typed -->
|
||||
<div id="kp-autogen-options" class="field" style="background:var(--surface2);border-radius:8px;padding:.75rem;border:1px solid var(--border);display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end">
|
||||
<div style="display:flex;flex-direction:column;gap:.3rem">
|
||||
<label for="kp-charset" style="font-size:.8rem;font-weight:600;color:var(--text-muted)">Character set</label>
|
||||
<select id="kp-charset" style="width:auto;font-size:.9rem">
|
||||
<option value="alphanumeric">A–Z + 0–9</option>
|
||||
<option value="alpha">A–Z only</option>
|
||||
<option value="numeric">0–9 only</option>
|
||||
<option value="passphrase" selected>Passphrase (4 words)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="kp-length-wrap" style="display:flex;flex-direction:column;gap:.3rem">
|
||||
<label for="kp-length" style="font-size:.8rem;font-weight:600;color:var(--text-muted)">Length <span id="kp-length-val" style="font-weight:700;color:var(--text)">12</span></label>
|
||||
<input id="kp-length" type="range" min="6" max="32" value="12" style="width:100%;cursor:pointer" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field" id="kp-expires-field">
|
||||
<label for="kp-expires">Expiry date & time</label>
|
||||
|
||||
Reference in New Issue
Block a user