summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager.php
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-27 17:46:51 -0500
committersullrich <sullrich@pfsense.org>2009-11-27 17:46:51 -0500
commit0a82fa9ba35e5714cb1beb5cc8af65d725143c61 (patch)
tree48d0011f59b8c1df00873a7457f377f0e09482ea /usr/local/www/system_usermanager.php
parent85dd175d043f248c590b18ced068dc9dbfb2054f (diff)
downloadpfsense-0a82fa9ba35e5714cb1beb5cc8af65d725143c61.zip
pfsense-0a82fa9ba35e5714cb1beb5cc8af65d725143c61.tar.gz
Allow expiration date to lie in the past which has the side effect of disabling the account Ticket #65
Diffstat (limited to 'usr/local/www/system_usermanager.php')
-rw-r--r--usr/local/www/system_usermanager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index 73053ba..b3403e9 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -213,7 +213,7 @@ if (isAllowedPage("system_usermanager")) {
if ($_POST['expires']){
if(strtotime($_POST['expires']) > 0){
if (strtotime("-1 day") > strtotime(date("m/d/Y",strtotime($_POST['expires'])))) {
- $input_errors[] = "The expiration date lies in the past.";
+ // Allow items to lie in the past which ends up disabling.
} else {
//convert from any strtotime compatible date to MM/DD/YYYY
$expdate = strtotime($_POST['expires']);
OpenPOWER on IntegriCloud