Adds auto-generate secure PSK button to input

This commit is contained in:
billz 2020-02-27 17:20:29 +00:00
parent 695ea7b969
commit 6c01069f67

View file

@ -91,9 +91,12 @@
<label for="cbxwpapairwise"><?php echo _("Encryption Type"); ?></label> <label for="cbxwpapairwise"><?php echo _("Encryption Type"); ?></label>
<?php SelectorOptions('wpa_pairwise', $arrEncType, $arrConfig['wpa_pairwise'], 'cbxwpapairwise'); ?> <?php SelectorOptions('wpa_pairwise', $arrEncType, $arrConfig['wpa_pairwise'], 'cbxwpapairwise'); ?>
</div> </div>
<div class="form-group"> <label for="txtwpapassphrase"><?php echo _("PSK"); ?></label>
<label for="txtwpapassphrase"><?php echo _("PSK"); ?></label> <div class="input-group">
<input type="text" class="form-control" id="txtwpapassphrase" name="wpa_passphrase" value="<?php echo htmlspecialchars($arrConfig['wpa_passphrase'], ENT_QUOTES); ?>" /> <input type="text" class="form-control" id="txtwpapassphrase" name="wpa_passphrase" value="<?php echo htmlspecialchars($arrConfig['wpa_passphrase'], ENT_QUOTES); ?>" />
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="gen_wpa_passphrase"><i class="fas fa-magic"></i></button>
</div>
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">