diff options
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r-- | src/controllers/UserController.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index b5349d6..90e43ce 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -24,18 +24,6 @@ class UserController extends BaseController { return $this->user->findOrFail($id); } - public function login() { - Auth::basic(); - - if (!Auth::check()) { - throw new Exception\LoginException; - } elseif (!empty(Input::get('redirect'))) { - throw new Exception\RedirectException(Input::get('redirect')); - } - - return Auth::user(); - } - public function update($id) { $s = $this->user->find($id); @@ -45,7 +33,7 @@ class UserController extends BaseController { if ($s->save()) { return $this->show($id); } else { - throw new Dingo\Api\Exception\UpdateResourceFailedException; + throw new \Dingo\Api\Exception\UpdateResourceFailedException; } } @@ -66,7 +54,7 @@ class UserController extends BaseController { if ($this->user->save()) { return $this->response->created(); } else { - throw new Dingo\Api\Exception\StoreResourceFailedException; + throw new \Dingo\Api\Exception\StoreResourceFailedException; } } |