diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index 035707a..057be05 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -127,7 +127,7 @@ class UserController extends CrudResourceController if (isset($data[$email_field])) { throw new Exception('777', $data[$email_field]); - $message = $validation->validate($data[$email_field]); + $message = $validation->validate($data); if (count($message)) { throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ -- libgit2 0.21.4