diff --git a/app/Services/AdminService.php b/app/Services/AdminService.php index 613c315..9d71f52 100644 --- a/app/Services/AdminService.php +++ b/app/Services/AdminService.php @@ -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()); } } -} \ No newline at end of file +}