diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index 578e046..af61b60 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -85,6 +85,14 @@ class UserController extends CrudResourceController } - + protected function transformPostDataValue($key, $value, $data) + { + if ($key == 'password') { + return $this->security->hash($value); + } + else { + return $value; + } + } } -- libgit2 0.21.4