diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 2bc809ef61..9016728284 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -186,6 +186,19 @@ function auth_method_change() { } else { document.iform.logoutwin_enable.checked = 0; } + if (document.iform.auth_method[2].checked == false) { + document.iform.radiusip.disabled = 1; + document.iform.radiusport.disabled = 1; + document.iform.radiuskey.disabled = 1; + document.iform.radacct_enable.disabled = 1; + document.iform.radiusacctport.disabled = 1; + } else { + document.iform.radiusip.disabled = 0; + document.iform.radiusport.disabled = 0; + document.iform.radiuskey.disabled = 0; + document.iform.radacct_enable.disabled = 0; + document.iform.radiusacctport.disabled = 0; + } } function radacct_change() { if (document.iform.radacct_enable.checked) { @@ -231,6 +244,9 @@ function enable_change(enable_change) { if (enable_change && document.iform.auth_method[0].checked == false) { document.iform.logoutwin_enable.checked = 1; } + + auth_method_change(); + } //--> @@ -372,7 +388,7 @@ to access after they've authenticated.