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