From 11e41ecbea650de8ddc0dbccdbf611fa63445873 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Feb 2017 18:44:15 +0200 Subject: [PATCH] registration --- app/library/App/Controllers/UserController.php | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) 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