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:
parent
22f683152d
commit
8d7a9a2d29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user