Commit 11e41ecbea650de8ddc0dbccdbf611fa63445873
1 parent
93413f78
registration
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -91,4 +91,13 @@ class UserController extends CrudResourceController |
91 | 91 | return 'id'; |
92 | 92 | } |
93 | 93 | |
94 | + protected function transformPostDataValue($key, $value, $data) | |
95 | + { | |
96 | + if ($key == 'password') { | |
97 | + return $this->security->hash($value); | |
98 | + } else { | |
99 | + return $value; | |
100 | + } | |
101 | + } | |
102 | + | |
94 | 103 | } | ... | ... |