summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-25 16:46:25 -0200
committerRenato Botelho <renato@netgate.com>2017-01-25 16:46:25 -0200
commite019f686087984f21779a3be500278afbca81c57 (patch)
tree65aa519d6f1a6046511bc7ae3e54d9e53d10a67d /src/usr/local/www/services_captiveportal.php
parent9b70602dcefb3845fec5fba36b8cac6c6f3c2ab2 (diff)
parent0ee22f364ca62b8305ff36447954dacdbc3c3cce (diff)
downloadpfsense-e019f686087984f21779a3be500278afbca81c57.zip
pfsense-e019f686087984f21779a3be500278afbca81c57.tar.gz
Merge pull request #3440 from phil-davis/patch-2
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r--src/usr/local/www/services_captiveportal.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index c0056c1..ee0c632 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -212,8 +212,8 @@ if ($_POST) {
/* input validation */
if ($_POST['enable']) {
- $reqdfields = explode(" ", "zone cinterface");
- $reqdfieldsn = array(gettext("Zone name"), gettext("Interface"));
+ $reqdfields = explode(" ", "zone cinterface auth_method");
+ $reqdfieldsn = array(gettext("Zone name"), gettext("Interface"), gettext("Authentication method"));
if (isset($_POST['auth_method']) && $_POST['auth_method'] == "radius") {
$reqdfields[] = "radius_protocol";
@@ -240,6 +240,10 @@ if ($_POST) {
}
}
+ if ($_POST['auth_method'] && !in_array($_POST['auth_method'], array('none', 'local', 'radius'))) {
+ $input_errors[] = sprintf(gettext("Authentication method %s is invalid."), $_POST['auth_method']);
+ }
+
if ($_POST['httpslogin_enable']) {
if (!$_POST['certref']) {
$input_errors[] = gettext("Certificate must be specified for HTTPS login.");
OpenPOWER on IntegriCloud