summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_settings.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-02-24 18:29:14 -0500
committerChris Buechler <cmb@pfsense.org>2010-02-24 18:29:14 -0500
commitbdadaf3c1fb09bee2a9e8e0e7dfd3ae34172b89e (patch)
tree40bbe33a4166eb350185bb67dfd771ac9e6a6dfb /usr/local/www/system_usermanager_settings.php
parent78dd50201ba7275cb357d8bddc89adb66363d98e (diff)
downloadpfsense-bdadaf3c1fb09bee2a9e8e0e7dfd3ae34172b89e.zip
pfsense-bdadaf3c1fb09bee2a9e8e0e7dfd3ae34172b89e.tar.gz
Change default session timeout to 4 hours. Clarify text description. Remove limit of < 999 and other invalid/unnecessary input validation. Use product_name
Diffstat (limited to 'usr/local/www/system_usermanager_settings.php')
-rwxr-xr-xusr/local/www/system_usermanager_settings.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php
index a0426c0..f9b548d 100755
--- a/usr/local/www/system_usermanager_settings.php
+++ b/usr/local/www/system_usermanager_settings.php
@@ -72,18 +72,12 @@ if ($_POST) {
if($_POST['session_timeout']) {
$timeout = intval($_POST['session_timeout']);
if ($timeout != "" && !is_numeric($timeout))
- $input_errors[] = gettext("Session timeout must be an integer with value 1 or greater.");
-
- if ($timeout < 1)
- $input_errors[] = gettext("Session timeout must be an integer with value 1 or greater.");
-
- if ($timeout > 999)
- $input_errors[] = gettext("Session timeout must be an integer with value 1 or greater.");
+ $input_errors[] = gettext("Session timeout must be an integer value.");
}
if (!$input_errors) {
- if($_POST['session_timeout'] && $_POST['session_timeout'] != "0")
+ if($_POST['session_timeout'])
$pconfig['session_timeout'] = intval($_POST['session_timeout']);
else
unset($config['system']['webgui']['session_timeout']);
@@ -249,7 +243,7 @@ if(!$pconfig['backend'])
<td width="78%" class="vtable">
<input name="session_timeout" id="session_timeout" type="text" size="8" value="<?=htmlspecialchars($pconfig['session_timeout']);?>" />
<br />
- <?=gettext("Time in minutes to expire idle management sessions.");?><br />
+ <?=gettext("Time in minutes to expire idle management sessions. The default is four hours (240 minutes). <br/> Enter 0 to never expire sessions. NOTE: This is a security risk!");?><br />
</td>
</tr>
<tr>
@@ -260,7 +254,7 @@ if(!$pconfig['backend'])
<option value="ldap"<?php if ($pconfig['backend'] == "ldap") echo " SELECTED";?>>LDAP (Active Directory)</option>
<option value="ldapother"<?php if ($pconfig['backend'] == "ldapother") echo " SELECTED";?>>LDAP OTHER (eDir, etc)</option>
</select>
- <br/>NOTE: login failures or server not available issues will fall back to pfSense internal users/group authentication.
+ <br/>NOTE: login failures or server not available issues will fall back to <?=$g['product_name'];?> internal users/group authentication.
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud