diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-12 23:43:31 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-12 23:44:40 -0500 |
commit | 310ea4e25796080b1a7e1a0fa0a2c2f2c8a085cd (patch) | |
tree | dc299c86aec7d748bec1c1b457f14a1d533283ae /usr/local/www/interfaces.php | |
parent | 4958ca9eed04a1e7afabf3eb1214e30b253ca6b4 (diff) | |
download | pfsense-310ea4e25796080b1a7e1a0fa0a2c2f2c8a085cd.zip pfsense-310ea4e25796080b1a7e1a0fa0a2c2f2c8a085cd.tar.gz |
Require WPA PSK where WPA-PSK is enabled. Clean up some other text. Ticket #4516
Diffstat (limited to 'usr/local/www/interfaces.php')
-rw-r--r-- | usr/local/www/interfaces.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 9b68b24..9bcd2e0 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -878,7 +878,12 @@ if ($_POST['apply']) { if ($_POST['passphrase']) { $passlen = strlen($_POST['passphrase']); if ($passlen < 8 || $passlen > 63) - $input_errors[] = gettext("The passphrase must be between 8 and 63 characters long."); + $input_errors[] = gettext("The WPA passphrase must be between 8 and 63 characters long."); + } + if ($_POST['wpa_enable'] == "yes") { + if (empty($_POST['passphrase']) && stristr($_POST['wpa_key_mgmt'], "WPA-PSK")) { + $input_errors[] = gettext("A WPA Passphrase must be specified when WPA PSK is enabled."); + } } } if (!$input_errors) { @@ -3273,7 +3278,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), </td> </tr> </table> - <br /><?=gettext("Passphrase must be from 8 to 63 characters."); ?> + <br /><?=gettext("WPA Passphrase must be between 8 and 63 characters long."); ?> </td> </tr> <tr> |