1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

re-working validation

This commit is contained in:
David Bomba 2016-03-13 23:50:40 +11:00
parent 22f683152d
commit 8d7a9a2d29

View File

@ -56,7 +56,7 @@ class RegisterRequest extends Request
foreach ($error as $key => $value) {
$message['error'] = ['message'=>$value];
$message = json_encode($error, JSON_PRETTY_PRINT);
$message = json_encode($message, JSON_PRETTY_PRINT);
$headers = Utils::getApiHeaders();
return Response::make($message, 400, $headers);