diff options
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r-- | src/controllers/UserController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index 6af3fe8..2a454ff 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -30,7 +30,7 @@ class UserController extends BaseController { $s = $this->user->find($id); if (!empty(Input::get('password'))) - $s->password = Hash::make(Input::get('password')); + $s->password = Input::get('password'); if ($s->save()) { return $this->show($id); @@ -51,7 +51,7 @@ class UserController extends BaseController { } $this->user->email = Input::get('email'); - $this->user->password = empty(Input::get('password')) ? null : Hash::make(Input::get('password')); + $this->user->password = Input::get('password'); if ($this->user->save()) { return $this->response->created(); |