From 95622a8cd29018acc4d035296264613fa89ebc8d Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 18:41:56 +0200 Subject: [PATCH] user registration --- app/library/App/Controllers/UserController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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