Merge pull request 'sayliR' (#97) from sayliR into main
Reviewed-on: Nikhil.Kadam/vib360#97
This commit is contained in:
@@ -263,15 +263,15 @@ class AdminService
|
||||
if (!isset($data['tenant_id'])) {
|
||||
throw new \Exception('tenant_id is required');
|
||||
}
|
||||
static $counter = 1;
|
||||
$email = "dummy{$counter}@example.com";
|
||||
$counter++;
|
||||
// static $counter = 1;
|
||||
// $email = "dummy{$counter}@example.com";
|
||||
// $counter++;
|
||||
|
||||
|
||||
// Prepare the payload with required fields
|
||||
$payload = [
|
||||
|
||||
'email' => $email,
|
||||
'email' => $data['email'] ?? '',
|
||||
'authority' => $data['authority'] ?? 'CUSTOMER_USER',
|
||||
'firstName' => $data['first_name'] ?? '',
|
||||
'lastName' => $data['last_name'] ?? '',
|
||||
@@ -649,4 +649,4 @@ class AdminService
|
||||
throw new Exception('Failed to fetch users: ' . $response->body());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user