summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-20 17:41:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-20 17:41:19 +0000
commit012c68342083696415d7bbc6924a3e7f830a33a0 (patch)
tree129fca61162dff9e22b68be225785550dd9128b5 /usr
parentb569598beeeec861a26fc72c96ff5c48d2c803da (diff)
downloadpfsense-012c68342083696415d7bbc6924a3e7f830a33a0.zip
pfsense-012c68342083696415d7bbc6924a3e7f830a33a0.tar.gz
At least one group is required for saving.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_usermanager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index e82ce23..fd700ac 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -85,6 +85,9 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']) or $isAdminUser == true) {
unset($input_errors);
$pconfig = $_POST;
+ if(!$_POST['groupname'])
+ $input_errors[] = "You must specify at least one group!";
+
/* input validation */
if (isset($id) && ($a_user[$id])) {
$reqdfields = explode(" ", "usernamefld");
OpenPOWER on IntegriCloud