Commit fd8d8eb3e39c2a94ab149a7fef7b861c5e785c02

Authored by Alex Savenko
1 parent 00abdaf2

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