summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-08 03:46:03 +0000
committerColin Smith <colin@pfsense.org>2005-03-08 03:46:03 +0000
commit0d9985d2c8fe1331f1b856fb48182def5be204ac (patch)
treecf8ba5ef37fcb53c92a38cf93918ce33c0bad504 /usr
parentcb7d3b13731c1ef0095c8f30ddaf751350aeefca (diff)
downloadpfsense-0d9985d2c8fe1331f1b856fb48182def5be204ac.zip
pfsense-0d9985d2c8fe1331f1b856fb48182def5be204ac.tar.gz
* Modify auth_method_change() to determine whether or not RADIUS-specific fields should be grayed out.
* Call auth_method_change() along with enable_change() to set these values when the page is first accessed.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_captiveportal.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 2bc809e..9016728 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();
+
}
//-->
</script>
@@ -372,7 +388,7 @@ to access after they've authenticated.</td>
<tr>
<td valign="top" class="vncell">HTTPS login</td>
<td class="vtable">
- <input name="httpslogin_enable" type="checkbox" class="formfld" id="httpslogin_enable" value="yes" <?php if($pconfig['httpslogin_enable']) echo "checked"; ?>>
+ <input name="httpslogin_enable" type="checkbox" class="formfld" id="httpslogin_enable" value="yes" <?php if($pconfig['httpslogin_enable']) echo "checked"; ?> onClick="enable_https(false)">
<strong>Enable HTTPS login</strong><br>
If enabled, the username and password will be transmitted over an HTTPS connection to protect against eavesdroppers. This option only applies when RADIUS authentication is used. A server name, certificate and matching private key must also be specified below.</td>
</tr>
OpenPOWER on IntegriCloud