Commit 95622a8cd29018acc4d035296264613fa89ebc8d
1 parent
bc273bdd
user registration
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -85,6 +85,14 @@ class UserController extends CrudResourceController | @@ -85,6 +85,14 @@ class UserController extends CrudResourceController | ||
85 | 85 | ||
86 | } | 86 | } |
87 | 87 | ||
88 | - | 88 | + protected function transformPostDataValue($key, $value, $data) |
89 | + { | ||
90 | + if ($key == 'password') { | ||
91 | + return $this->security->hash($value); | ||
92 | + } | ||
93 | + else { | ||
94 | + return $value; | ||
95 | + } | ||
96 | + } | ||
89 | 97 | ||
90 | } | 98 | } |