summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-16 13:29:50 -0500
committerjim-p <jimp@pfsense.org>2013-02-16 13:29:50 -0500
commiteed8df6f61ac28c5a636953697a6c88373678bcf (patch)
treeb6de25aa0e55b3c6603b532a859bea058c062495 /usr/local/www/system_authservers.php
parent923e440b75eda660a5cdbd102912fe53d61d1237 (diff)
downloadpfsense-eed8df6f61ac28c5a636953697a6c88373678bcf.zip
pfsense-eed8df6f61ac28c5a636953697a6c88373678bcf.tar.gz
Only apply this test for radius servers.
Diffstat (limited to 'usr/local/www/system_authservers.php')
-rw-r--r--usr/local/www/system_authservers.php2
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 */
OpenPOWER on IntegriCloud