Commit 00abdaf24f410bdca645adce71bbfdfc33c79ca2
1 parent
49617b25
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($messages)) { | 131 | if (count($messages)) { |
132 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ | 132 | throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ |
133 | - 'message' => $messages['message'], | 133 | + 'message' => $messages, |
134 | 'data' => $data[$email_field] | 134 | 'data' => $data[$email_field] |
135 | ]); | 135 | ]); |
136 | } | 136 | } |