From 4a4b5e05576c68b382e5a6b19638da785cc81c45 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 24 May 2015 22:09:13 +0200 Subject: Using email as id; User & PasswordReminder --- src/controllers/UserController.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/controllers/UserController.php') 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'); -- cgit v1.2.3