From 2c0b6e236b095fd40c7886aa48288d6bace9e0d8 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Feb 2017 21:33:22 +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 3d3fb53..d597b7c 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -124,7 +124,7 @@ class UserController extends CrudResourceController if (!isset($data[$email_field])) { - $message = $validation->validate($data[$email_field]); + $message = $validation->validate($data['email']); if (count($message)) { throw new Exception(ErrorCodes::DATA_FAILED, 'Unable to create item', [ 'messages' => $message, -- libgit2 0.21.4