1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

re-working validation

This commit is contained in:
David Bomba 2016-03-13 23:52:02 +11:00
parent 8d7a9a2d29
commit d9346bfadf

View File

@ -47,11 +47,11 @@ class RegisterRequest extends Request
public function response(array $errors)
{
/* If the user is not validating from a mobile app - pass through parent::response*/
/* If the user is not validating from a mobile app - pass through parent::response */
if(!isset($this->req->api_secret))
return parent::response($errors);
/* If the user is validating from a mobile app - pass through first error string and return error*/
/* If the user is validating from a mobile app - pass through first error string and return error */
foreach($errors as $error) {
foreach ($error as $key => $value) {