Commit 9c90eb9d313832da61707099529df0a3a38d8d4f
1 parent
4c947ad2
email validation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -127,7 +127,7 @@ class UserController extends CrudResourceController | @@ -127,7 +127,7 @@ class UserController extends CrudResourceController | ||
127 | if (isset($data[$email_field])) { | 127 | if (isset($data[$email_field])) { |
128 | 128 | ||
129 | throw new Exception('777', $data[$email_field]); | 129 | throw new Exception('777', $data[$email_field]); |
130 | - $message = $validation->validate($data[$email_field]); | 130 | + $message = $validation->validate($data); |
131 | 131 | ||
132 | if (count($message)) { | 132 | if (count($message)) { |
133 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ | 133 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ |