settings: prevent accidental form data submitting in html mode

If JavaScript is disabled the form in the settings should not leak
private or pubkey data.
pull/2/head
OFF0 2 years ago
parent 2d8e60a6df
commit c896789ccd
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -53,16 +53,16 @@
<div class="tab">
<input type="radio" name="maintabs" id="settings">
<label for="settings">settings</label>
<form name="settings" method="post" class="content">
<form action="#" name="settings" class="content">
<label for="pubkey">public-key</label>
<input type="text" name="pubkey" id="pubkey">
<input type="text" id="pubkey">
<label for="privatekey">
private-key
<button type="button" name="privatekey-toggle" class="button-inline" >
<small>show</small>
</button>
</label>
<input type="password" name="privatekey" id="privatekey">
<input type="password" id="privatekey">
<div class="buttons">
<small id="keystatus" class="form-status" hidden></small>
<button type="button" name="generate" tabindex="0">new</button>

Loading…
Cancel
Save