Skip to content

Commit

Permalink
Fixed #50 - MOAR VALIDATION!
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 26, 2013
1 parent e77b477 commit 4d1dd1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/GroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/admin/LicensesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/admin/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4d1dd1c

Please sign in to comment.