Add gen_apikey to template

This commit is contained in:
billz
2024-03-08 10:45:05 +01:00
parent 95ad90063b
commit 282b839f45
3 changed files with 14 additions and 5 deletions

View File

@@ -122,6 +122,10 @@ $(document).on("click", "#gen_wpa_passphrase", function(e) {
$('#txtwpapassphrase').val(genPassword(63));
});
$(document).on("click", "#gen_apikey", function(e) {
$('#txtapikey').val(genPassword(32).toLowerCase());
});
$(document).on("click", "#js-clearhostapd-log", function(e) {
var csrfToken = $('meta[name=csrf_token]').attr('content');
$.post('ajax/logging/clearlog.php?',{'logfile':'/tmp/hostapd.log', 'csrf_token': csrfToken},function(data){