diff --git a/app/controllers/admin/GroupsController.php b/app/controllers/admin/GroupsController.php index 56dc76bb034e..9ab1e3798932 100755 --- a/app/controllers/admin/GroupsController.php +++ b/app/controllers/admin/GroupsController.php @@ -56,7 +56,7 @@ public function postCreate() { // Declare the rules for the form validation $rules = array( - 'name' => 'required', + 'name' => 'required|alpha_dash|min:2', ); // Create a new validator instance from our validation rules @@ -162,7 +162,7 @@ public function postEdit($id = null) // Declare the rules for the form validation $rules = array( - 'name' => 'required', + 'name' => 'required|alpha_dash|min:2', ); // Create a new validator instance from our validation rules diff --git a/app/controllers/admin/LicensesController.php b/app/controllers/admin/LicensesController.php index 8a91ae534b54..7cd9dbf8f9d2 100644 --- a/app/controllers/admin/LicensesController.php +++ b/app/controllers/admin/LicensesController.php @@ -258,7 +258,7 @@ public function postCheckout($seatId) // Declare the rules for the form validation $rules = array( - 'assigned_to' => 'required|min:1' + 'assigned_to' => 'required|integer|min:1' ); // Create a new validator instance from our validation rules diff --git a/app/controllers/admin/UsersController.php b/app/controllers/admin/UsersController.php index 1ebf7daaef21..9f88e9d7b7c0 100755 --- a/app/controllers/admin/UsersController.php +++ b/app/controllers/admin/UsersController.php @@ -27,8 +27,8 @@ class UsersController extends AdminController { * @var array */ protected $validationRules = array( - 'first_name' => 'required|min:3', - 'last_name' => 'required|min:3', + 'first_name' => 'required|alpha_dash|min:3', + 'last_name' => 'required|alpha_dash|min:3', 'email' => 'required|email|unique:users,email', 'password' => 'required|between:3,32', 'password_confirm' => 'required|between:3,32|same:password',