diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index b18b5fc..faaf2ff 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -91,4 +91,13 @@ class UserController extends CrudResourceController return 'id'; } + protected function transformPostDataValue($key, $value, $data) + { + if ($key == 'password') { + return $this->security->hash($value); + } else { + return $value; + } + } + } -- libgit2 0.21.4