From 9c90eb9d313832da61707099529df0a3a38d8d4f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Feb 2017 21:44:31 +0200 Subject: [PATCH] email validation --- app/library/App/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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