mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
re-working validation
This commit is contained in:
parent
8d7a9a2d29
commit
d9346bfadf
@ -47,11 +47,11 @@ class RegisterRequest extends Request
|
|||||||
|
|
||||||
public function response(array $errors)
|
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))
|
if(!isset($this->req->api_secret))
|
||||||
return parent::response($errors);
|
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($errors as $error) {
|
||||||
foreach ($error as $key => $value) {
|
foreach ($error as $key => $value) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user