From ab31980b116ecd497d5d4610c212ae7b1f61fada Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 24 May 2015 17:17:52 +0200 Subject: Password reminders --- src/controllers/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controllers/UserController.php') 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(); -- cgit v1.2.3