diff options
author | Camil Staps | 2015-06-28 00:16:54 +0200 |
---|---|---|
committer | Camil Staps | 2015-06-28 00:16:54 +0200 |
commit | 1a3c6167f6a68964a0bd94c064a88794c952efb6 (patch) | |
tree | 984508e789b96e2f8906c00a9def229435b45403 /src/controllers | |
parent | Expose Location header; redirect after storing User (diff) |
Lumen
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/PasswordReminderController.php | 2 | ||||
-rw-r--r-- | src/controllers/UserController.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/controllers/PasswordReminderController.php b/src/controllers/PasswordReminderController.php index c4422c3..8d3ea29 100644 --- a/src/controllers/PasswordReminderController.php +++ b/src/controllers/PasswordReminderController.php @@ -61,7 +61,7 @@ class PasswordReminderController extends BaseController { */ public function destroy($userEmail, $reminderToken) { $user = Auth::user(); - $user->password = Request::get('password'); + $user->password = Request::input('password'); $user->save(); $this->passwordReminder = $this->passwordReminder->findOrFail($reminderToken); $this->passwordReminder->useToken(); diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index 8c91f53..2daadb8 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -23,6 +23,7 @@ use CamilStaps\BotleaguesApi\Database\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Input; +use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\Validator; class UserController extends BaseController { @@ -61,7 +62,7 @@ class UserController extends BaseController { $this->user->password = Input::get('password'); if ($this->user->save()) { - return $this->response->created(route('user.show', $this->user->email)); + return $this->response->created(route('user/show', $this->user->email)); } else { throw new \Dingo\Api\Exception\StoreResourceFailedException; } |