sayliR #97

Merged
Sayli.Raut merged 2 commits from sayliR into main 2025-04-24 07:24:57 +00:00

View File

@@ -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());
}
}
}
}