dns/bind: actually save and validate the key

It would probably be better to move it to general/advanced.
The restart is an issue but a help text would suffice.
This commit is contained in:
Franco Fichtner 2023-01-10 10:53:30 +01:00
parent 2d87d5b86f
commit 5f0a181e52
2 changed files with 8 additions and 6 deletions

View file

@ -155,7 +155,7 @@
<hmac-md5>HMAC-MD5</hmac-md5>
</OptionValues>
</rndcalgo>
<rndcsecret type="TextField">
<rndcsecret type="Base64Field">
<Required>Y</Required>
<default>VxtIzJevSQXqnr7h2qerrcwjnZlMWSGGFBndKeNIDfw=</default>
</rndcsecret>

View file

@ -331,7 +331,7 @@ $( document ).ready(function() {
$("#saveAct_acl").click(function(){
saveFormToEndpoint(url="/api/bind/acl/set", formid='frm_general_settings',callback_ok=function(){
$("#saveAct_acl_progress").addClass("fa fa-spinner fa-pulse");
$("#saveAct_acl_progress").addClass("fa fa-spinner fa-pulse");
ajaxCall(url="/api/bind/service/reconfigure", sendData={}, callback=function(data,status) {
updateServiceControlUI('bind');
$("#saveAct_acl_progress").removeClass("fa fa-spinner fa-pulse");
@ -340,10 +340,12 @@ $( document ).ready(function() {
});
$("#saveRestartAct_rndckey").click(function(){
$("#saveRestartAct_rndckey_progress").addClass("fa fa-spinner fa-pulse");
ajaxCall("/api/bind/service/restart", {}, function(data,status) {
updateServiceControlUI('bind');
$("#saveRestartAct_rndckey_progress").removeClass("fa fa-spinner fa-pulse");
saveFormToEndpoint(url="/api/bind/general/set", formid='frm_general_settings',callback_ok=function(){
$("#saveRestartAct_rndckey_progress").addClass("fa fa-spinner fa-pulse");
ajaxCall("/api/bind/service/restart", {}, function(data,status) {
updateServiceControlUI('bind');
$("#saveRestartAct_rndckey_progress").removeClass("fa fa-spinner fa-pulse");
});
});
});
$(".saveAct_domain").click(function(){