diff options
author | jim-p <jimp@pfsense.org> | 2013-02-16 13:29:50 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-16 13:29:50 -0500 |
commit | eed8df6f61ac28c5a636953697a6c88373678bcf (patch) | |
tree | b6de25aa0e55b3c6603b532a859bea058c062495 /usr | |
parent | 923e440b75eda660a5cdbd102912fe53d61d1237 (diff) | |
download | pfsense-eed8df6f61ac28c5a636953697a6c88373678bcf.zip pfsense-eed8df6f61ac28c5a636953697a6c88373678bcf.tar.gz |
Only apply this test for radius servers.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_authservers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php index 39ac184..6290a88 100644 --- a/usr/local/www/system_authservers.php +++ b/usr/local/www/system_authservers.php @@ -213,7 +213,7 @@ if ($_POST) { if (auth_get_authserver($pconfig['name']) && !isset($id)) $input_errors[] = gettext("An authentication server with the same name already exists."); - if (isset($_POST['radius_timeout']) && (!is_numeric($_POST['radius_timeout']) || (is_numeric($_POST['radius_timeout']) && ($_POST['radius_timeout'] <= 0)))) + if (($pconfig['type'] == "radius") && isset($_POST['radius_timeout']) && (!is_numeric($_POST['radius_timeout']) || (is_numeric($_POST['radius_timeout']) && ($_POST['radius_timeout'] <= 0)))) $input_errors[] = gettext("RADIUS Timeout value must be numeric and positive."); /* if this is an AJAX caller then handle via JSON */ |