diff options
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r-- | src/controllers/UserController.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index 2a454ff..9f70f58 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -40,16 +40,6 @@ class UserController extends BaseController { } public function store() { - $rules = [ - 'email' => ['required', 'email', 'unique:users'], - 'password' => ['required', 'min:7'] - ]; - $payload = Input::only('email', 'password'); - $validator = Validator::make($payload, $rules); - if ($validator->fails()) { - throw new ValidationException('Could not create new user.', $validator->errors()); - } - $this->user->email = Input::get('email'); $this->user->password = Input::get('password'); |