Commit 6f7036e6544e3b2a64799ac820fbb176204fc0fb
1 parent
427c38b9
email validation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -130,7 +130,7 @@ class UserController extends CrudResourceController | @@ -130,7 +130,7 @@ class UserController extends CrudResourceController | ||
130 | 130 | ||
131 | if (count($message)) { | 131 | if (count($message)) { |
132 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ | 132 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ |
133 | - 'messages' => var_dump($message), | 133 | + 'message' => $message, |
134 | 'data' => $data[$email_field] | 134 | 'data' => $data[$email_field] |
135 | ]); | 135 | ]); |
136 | } | 136 | } |