X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f3453afbd1ab1dc25b9ab2a98d784eba78105e18..41aad10cbe0755aee50f597cb2cadd3029de7e1d:/settings/install2.php diff --git a/settings/install2.php b/settings/install2.php index 8ce991f..3f9806b 100644 --- a/settings/install2.php +++ b/settings/install2.php @@ -181,7 +181,16 @@ $writable = (is_writable("../config/")) ? true: false; test_conn.addEventListener('click', e => { test_conn.classList.add('disabled'); test_conn.innerHTML = "Checking..."; - fetch(BASE_URL + 'api/installation2.php?method=rpc&host='+encodeURIComponent(rpc_host.value)+'&port='+encodeURIComponent(rpc_port.value)+'&user='+encodeURIComponent(rpc_user.value)+'&password='+encodeURIComponent(rpc_pass.value)+'&tls_verify='+rpc_tls.checked) + fetch(BASE_URL + 'api/installation2.php', { + method:'POST', + headers: {'Content-Type':'application/x-www-form-urlencoded'}, + body: 'method=rpc&'+ + 'host='+encodeURIComponent(rpc_host.value)+ + '&port='+encodeURIComponent(rpc_port.value)+ + '&user='+encodeURIComponent(rpc_user.value)+ + '&password='+encodeURIComponent(rpc_pass.value)+ + '&tls_verify='+rpc_tls.checked + }) .then(response => response.json()) .then(data => { if (data.success)