From 4f0f868a17a8e2c6f9701ca22249d334ab448c7b Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 30 Sep 2015 10:43:08 +0200 Subject: [PATCH] (captiveportal, new) add timeout fields --- .../OPNsense/CaptivePortal/forms/dialogZone.xml | 14 ++++++++++++++ .../OPNsense/CaptivePortal/CaptivePortal.xml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml b/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml index b554322f7..b471d5a51 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml +++ b/src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/forms/dialogZone.xml @@ -27,6 +27,20 @@ Type or select server. + + zone.idletimeout + + text + + Type or select server. + + + zone.hardtimeout + + text + + Type or select server. + zone.description diff --git a/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml b/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml index 718f60ce6..ffd8e739b 100644 --- a/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml +++ b/src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CaptivePortal.xml @@ -30,6 +30,20 @@ Y Local Database + + Y + 0 + 0 + 10080 + Idle timeout must be between 0(no timeout) and 10080 (a week) + + + Y + 0 + 0 + 10080 + Hard timeout must be between 0(no timeout) and 10080 (a week) + Y /^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u