From 19b01b1d27903c2cfebc8774c64cd009459afcae Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 13:48:36 -0600 Subject: [PATCH] Add on to accepted. --- laravel/validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/validator.php b/laravel/validator.php index 12c92912..7203e172 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -301,7 +301,7 @@ protected function validate_confirmed($attribute, $value) */ protected function validate_accepted($attribute, $value) { - return $this->validate_required($attribute, $value) and ($value == 'yes' or $value == '1'); + return $this->validate_required($attribute, $value) and ($value == 'yes' or $value == '1' or $value == 'on'); } /**