Commit 2c0b6e236b095fd40c7886aa48288d6bace9e0d8
1 parent
06ecc69d
email validation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -124,7 +124,7 @@ class UserController extends CrudResourceController |
124 | 124 | |
125 | 125 | if (!isset($data[$email_field])) { |
126 | 126 | |
127 | - $message = $validation->validate($data[$email_field]); | |
127 | + $message = $validation->validate($data['email']); | |
128 | 128 | if (count($message)) { |
129 | 129 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ |
130 | 130 | 'messages' => $message, | ... | ... |