diff options
author | Camil Staps | 2015-05-12 22:44:16 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-12 22:44:16 +0200 |
commit | a0bb2d17c662231ab45ab3910d6a8cafc01bd203 (patch) | |
tree | f72b9e7b99111030d1f21982a8d11953ce98a6dc /src/controllers/UserController.php | |
parent | Access-control-allow-{methods,headers} headers (diff) |
Cleanup
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; } } |